Questions tagged [windows-composition-api]

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.

40 questions
31
votes
2 answers

How to use Acrylic Accent in Windows 10 Creators Update?

I can't find any detailed document to use Acrylic Accent (CreateBackdropBrush). I found a post in StackOverflow which is somewhat useful but it doesn't help to get started. So please create a detailed answer to this post so that everyone can…
11
votes
1 answer

Does UWP Composition Api support color replacement?

I've been trying to look for an examples which related to Color Replacement, here's an example using the Photoshop which can take, for example, a Blue shade and replace it with a Red shade: BEFORE: AFTER: Is this possible using the Composition…
Maximus
  • 1,441
  • 14
  • 38
3
votes
2 answers

I can't get my Projection Matrix to have a proper perspective for a Rotation animation

Im trying to replicate a plane projection rotation in UWP using the composition api. But I'm having trouble with a projection matrix in my composition code. Heres what I have: private void Perspective(FrameworkElement element, double duration, float…
Maximus
  • 1,441
  • 14
  • 38
3
votes
1 answer

How to retrieve Parent Visual Size within XamlCompositionBrushBase?

I'm creating a class inheriting from XamlCompositionBrushBase and want to know the render size of the visual the brush is attached to when it's hooked up in OnConnected. I need this info to create a surface in my composition that's the size of my…
3
votes
1 answer

Color Animation with ease

I have been following this question to make a color animation. I can create the animation and it runs fine until the animation gets started again. There is a moment where it feels that the animation has been started/stopped there for a moment. I…
Ahmar
  • 740
  • 6
  • 26
3
votes
1 answer

Class not finding when using XamlCompositionBrushBase

So I tried to use BackdropBrush with XamlCompositionBrushBase creating a class called BackdropBlurBrush, but when I call it from XAML It doesn’t find the class. I created the class on the main project. See the error here. Sample on GitHub:…
2
votes
2 answers

UWP Composition API: Rounded Corners?

I'm struggling to figure out to to create rounded corners of content using Composition API. This is where I'm at, any help would be much appreciated: void CreateRoundedCorners(Vector2 cornerRadius, CompositionSurfaceBrush imageSourceBrush,…
Sean O'Neil
  • 1,222
  • 12
  • 22
2
votes
1 answer

Clipping Composition Animation?

I have this problem I have an Control I want to animate by using Composition API offset extension method to animate movement by the distance of its width to the right. So far so good. But I also want all of it that slides out of its original…
Homde
  • 4,246
  • 4
  • 34
  • 50
2
votes
1 answer

How to add effect on CanvasGeometry

It seems to me that all the effects available in Win2D are for drawing image. What about CanvasGeometry? How do I draw a CanvasGeometry using, say glowing effect ? Thanks.
Muzib
  • 2,412
  • 3
  • 21
  • 32
2
votes
2 answers

is it Possible to apply ColorAnimationUsingKeyFrames to a DropShadowPanel?

I'm using UWP and I'm trying to apply Color animation using Keyframes to a DropShadowPanel from the UWP Community Toolkit. but I haven't been able to succeed so far I've been able to apply DoubleAnimation to BlurRadius Property and Opacity Property…
2
votes
0 answers

Is it possible to implicitly animate an element's size using the XAML Composition extensions?

I'm attempting to achieve automatic animation of size changes for elements. I think there's some interplay of Composition and XAML I don't fully understand. First, I tried using the XAML extensions from the toolkit:
2
votes
1 answer

uwp Expression node fade in animation

I am using the sample on Windows UI dev labs sample gallery. And I used ShyHeader example to put in my app, but I am not using exactly the same code but I actually edited the example according to own needs. My question is how can I use expression…
Muhammad Touseef
  • 4,357
  • 4
  • 31
  • 75
2
votes
1 answer

UWP community fade animation not changing the opacity at all

await VolumeRing.Fade(value: 1f, duration: 20, delay: 0).StartAsync(); My problem is very simple. I am using UWP community toolkit to animate the fade animation of a xaml element but I've even checked with breakpoints; the above code does bring its…
2
votes
2 answers

How to use Acrylic Accent (CreateHostBackDropBrush()) in Windows 10 Creators Update correctly?

I want to do something that could be a little bit tricky, since it's a new feature in Win 10 Creators Update: I would like to use the new Acrylic Accent feature to make transparent Windows in UWP apps. I saw that Microsoft is already introducing it…
Luca Lindholm
  • 813
  • 1
  • 9
  • 23
2
votes
1 answer

How to combine multiple effects in UWP Composition API

I want to combine blur, Saturation and tint color. I have a Blend effect, that consist of GaussianBlur and Tint color. _compositor = ElementCompositionPreview.GetElementVisual(this).Compositor; var graphicsEffect = new BlendEffect { Mode =…
Liero
  • 25,216
  • 29
  • 151
  • 297
1
2 3