RadialGradientBrush in Windows Phone 8.1?

2019-07-19 07:58发布

Please tell me how can I create a RadialGradientBrush in Windows Phone 8.1 app?

I've tried to find it here but there is no such brush

 Windows.UI.Xaml.Media

Any ideas?

Thank you!

1条回答
Bombasti
2楼-- · 2019-07-19 08:26

If you don't mind installing the new Microsoft's Win2D library from NuGet or their Win2D GitHub, you can use the Microsoft.Graphics.Canvas.CanvasRadialGradientBrush. For further reference:

Microsoft.Graphics.Canvas.CanvasRadialGradientBrush

查看更多
登录 后发表回答