Where are you stuck? Is it the WPF VisualBrush? According to the
documentation[
^]:
Quote:
Paints an area with a Visual.
Now, Google Search is the first place to look. Here is the search that I used:
uwp visualbrush - Google Search[
^]
First search result was this:
Composition brushes - UWP app developer | Microsoft Docs[
^]:
Quote:
A brush paints the area of a Visual with its output. Different brushes have different types of output.
This sounds exactly like what we want. It looks like there are two different brushes that you could use:
1. CompositionSurfaceBrush:
Quote:
Paints a SpriteVisual with pixels from an ICompositionSurface.
2. CompositionEffectBrush:
Quote:
A brush contianing an effect created with the CompositionEffectFactory.CreateBrush method.
Now that we know WHAT we are looking for, we can refine our Google Search for examples of how to use these UWP brushes:
CompositionSurfaceBrush xaml example - Google Search[
^]
There are a number of useful examples to choose from in the search results. Here is one of them:
Working with Brushes and Content – XAML and Visual Layer Interop, Part One - Building Apps for WindowsBuilding Apps for Windows[
^]
And here is a video of using Storyboard animation in a UWP app (from the very first search we did above):
UWP: Animation of Elements with Using the Storyboard - YouTube[
^]
Now all you need to do is check out the above links, maybe look at some more links from the two searches, try out each of the parts and get them working, then you will be ready to work out how to convert the code. This is the journey that I would have to make to help you with your task.