Null brush fix

May 21, 2011 at 1:24 PM

First of all: thanks for these nice components.

In case a shapefile has a null/transparent fill brush, an error occurs. The following change in the source code will fix this:

In SilverlightStyles.cs:

public static System.Windows.Media.Brush Convert(this Brush brush)
   if (brush == null)
       return System.Windows.Media.Brushes.Transparent;
   return new System.Windows.Media.SolidColorBrush(brush.Color.Convert());

How about setting the default pen width in Pen.cs in 1?

May 29, 2011 at 9:46 PM

Thanks for reporting the bug! I will fix it, but not tonight since I'm halfway some refactoring.



May 29, 2011 at 9:56 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.