Using Path Animation in Windows 8 using XAML - xaml

I would like to animate a UI control (an Image actually) over a Path provided.
It is looking that it is not possible to do it in Windows 8 using XAML although it was possible with .NET 4.5 as far as I could see from the below reference.
http://msdn.microsoft.com/en-us/library/ms746981.aspx
My question is whether there is a work around that I can use to achieve my goal or get closer to it.

WinRT is very similar to Silverlight, so many Silverlight solutions can work in WinRT with minimal or no changes. This sample on CodeProject should give you DoubleAnimationUsingPath with little work.
http://www.codeproject.com/Articles/30819/Animation-Along-a-Path-for-Silverlight

Related

Avalonia UI Carousel Example

I'm rather new to Avalonia UI / XAML / .NET MVVM in general. While I really like Avalonia so far, it's still in beta and lacks extensive documentation. Hence I sometimes struggle to get specific things working or finding out how I should use them correctly.
Could somebody point me to an example using the Carousel control? Which properties should I set in the xaml, what kind of item list should be behind it etc?
Cheers.
You can find usage example in ControlCatalog project from the main repository:
https://github.com/AvaloniaUI/Avalonia/blob/master/samples/ControlCatalog/Pages/CarouselPage.xaml
https://github.com/AvaloniaUI/Avalonia/blob/master/samples/ControlCatalog/Pages/CarouselPage.xaml.cs

How do i add XAML to an existing C++ DirectX windows 8 app?

I have a fully working C++ game, all done and ready to go... But i'd like to add some adverts to it. I have found out that in order to do that you require XAML.
How do I go about putting a XAML page on top of my DirectX C++ application so I can display the adverts?
#Jimmyt1988 - take a look at SwapChainPanel (newer in Win8.1 and preferred) and/or SwapChainBackgroundPanel.
Some resources for you:
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.swapchainpanel.aspx
http://code.msdn.microsoft.com/windowsapps/XAML-SwapChainPanel-00cb688b
http://channel9.msdn.com/Events/Windows-Camp/Developing-Windows-8-Metro-style-apps-in-Cpp/Building-Apps-with-Cpp-XAML-and-DirectX
Hope this helps!
Apart from the resources Tim mentioned in his answer above, also check out: http://www.youtube.com/watch?v=LpLMSbxKEIU
That helped me get started with DirectX on Windows 8.
[This should ideally be a comment, but I am new and I don't have enough reputation points]

How to change image source in WP8 using C#?

I have an Image object created in XAML in my Windows Phone 8 project. I'd like to change the Source property in C#. How would I go about doing that? I've followed the code at https://stackoverflow.com/questions/5770527/imagebutton-change-source-property but had no success. BitmapImage does not seem to be valid for Windows Phone 8. Does anyone know the correct way to change image sources in C# for WP8? Thank you.
Well the solution ended up being something simple. I just needed to import the System.Windows.Media.Imaging namespace. I added
using System.Windows.Media.Imaging;
to the top of my file, which fixed the problem.

How to draw graphics object in windows 8 winRT

How i can draw hand free graphic objects in windows 8, like paint can. I implemented such things in windows phone with Inkpresenter. But in winRT it seems that no such items are present. So i decided to use WritablebitmapEX, but idont know hot to implement this in windows 8. No sample code present in the downloading site. please any one help me to solve this issue.
http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/282a211e-e3bf-4184-8868-40208aa596dd
there is a good quickstart page on the Microsoft Site
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh974457.aspx

Silverlight 4 wait/spinner control

I'd like to implement a spinner control (something along these lines) in Silverlight 4 to display during pending operations. There are several examples on the web for Silverlight 3 but I'm either unable to compile them into my project or they just flat out display nothing. In addition I'm unable to find any examples specific to Silverlight 4.
Can someone please post a sample for Silverlight 4 or a link to one?
You can use the BusyIndicator.
How To Work With Silverlight BusyIndicator?
Custom Busyindicator style in Silverlight 4
I found a good example of a spinner control here. It's very simple and may not be ideal but it works perfect for my purposes. It's a XAML-only solution so it is very easy to port.
If you decide to use it, then I'd like to echo one of the commenters' suggestions that you change the <Grid> to a <Viewbox> so that the spinner will scale automatically.
I've put together a pure xaml spinner out of another example I've found ( see source ). It works on silverlight 4 and moonlight 4 too.
Pure XAML Spinner
Slightly nicer visual than the "rotate some rectangles" approach.