Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting LinearGradientBrush to Color

Tags:

c#

windows

xaml

I am creating an application that takes advantage of Bing Maps in Windows 8, C# and XAML. I currently have created a MapPolygon and I would like the fill color to be a LinearGradientBrush or any kind of Gradient color. Any ideas of how to accomplish this?

Thanks in advance, Jake

like image 877
Jake Bock Avatar asked Aug 14 '26 19:08

Jake Bock


1 Answers

I don't believe what you're trying to do is possible. The property is FillColor and it is of type Color. Color can't be a Gradient the way a Brush could be. It has to be a color.

like image 174
Tim Avatar answered Aug 17 '26 10:08

Tim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!