RadialGradientBrush in Windows Phone 8.1?

2019-07-19 08:15发布

问题:

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:

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