For questions about the Windows.UI.Compositon WinRT API namespace which can be called from any Universal Windows Platform app to create lightweight visuals and apply powerful animations, effects, and manipulations in an application.
Questions tagged [windows-composition-api]
40 questions
0
votes
2 answers
Composition - Why does my element immediately set a Blur on my animation?
I have the following Xaml for my sample app to demonstrate the issue:

Maximus
- 1,441
- 14
- 38
0
votes
2 answers
How to set a property without using an animation (Composition Api)?
Question, how can we set a value for a property on Visual without using an animation? For example this works for me (for a Translation) but I feel there must be a better way. I'm using an animation of 1 millisecond to set a value…

Maximus
- 1,441
- 14
- 38
0
votes
0 answers
UWP: How to assign a LayerVisual as the first child of a Panel
I am adding a LayerVisual to a Panel by invoking
LayerVisual layerVisual; // this is created using a Compositor in previous logic
Panel parent; // I get this Panel from my XAML
ElementCompositionPreview.SetElementChildVisual(parent,…

Cristiano Ghersi
- 1,944
- 1
- 20
- 46
0
votes
2 answers
Does the Windows Composition API support 2.5D projected rotation?
I have started to use the Windows Composition API in UWP applications to animate elements of the UI.
Visual elements expose RotationAngleInDegrees and RotationAngle properties as well as a RotationAxis property.
When I animate a rectangular object's…

HoloSheep
- 53
- 12
0
votes
2 answers
How can a ListViewBase animation be improved?
I'm creating a composition-based animation which I would like to scale-in each ListViewItem as they are loaded. I have the following sample code:
public sealed partial class MainPage : Page
{
public MainPage()
{
…

Maximus
- 1,441
- 14
- 38
0
votes
1 answer
Unable to retrieve the missing variables for a Composition animation
I'm trying to apply a pointer animation using the Composition Api along with the Expression Builder. I've found a sample of what I need, but the code is imcomplete and I cannot figure out how to get the values for the variables center and…

Maximus
- 1,441
- 14
- 38
0
votes
1 answer
eliminate wobble in sticky scroll header
When using the composition api to fix an element within a scrollviewer there seems to be layout rounding going on that creates a wobble on a whole visual.
While the following is not my code you can see a similar effect here (look at the "Sticky…

Markus Hütter
- 7,796
- 1
- 36
- 63
0
votes
1 answer
How to apply fallback color to acrylic in creators update
After following this post: How to use Acrylic Accent in Windows 10 Creators Update?
I've successfully added acrylic to my app on the Creators Update. Unfortunately, when transparency is disabled in the color settings in Windows, my app's background…

Colin Kiama
- 44
- 7
0
votes
0 answers
How to create the 'paper mache' texture used along with the Acrylic Accent by Microsoft?
I would like to generate the 'paper mache' texture that MS is using in its own apps, like Groove and Movie.
I already know how to create the transparent background, using CreateHostBackdropBrush() etc.
I only want to know if someone have some idea…

Luca Lindholm
- 813
- 1
- 9
- 23
0
votes
1 answer
Current value of an animating property of a UWP Composition visual?
I have a SpriteVisual for which I'm animating opacity, offset, and size using KeyFrameAnimations. While the animation is running the property values seem to be unaffected: they show the initial values until the animation finishes, at which point…

Peter Taylor
- 4,918
- 1
- 34
- 59