This question is locked. New answers and comments are not allowed.
Hi everyone,
I have loaded in a KML file containing U.S. zipcode areas which are then filled in via Information.Colorizer. If you look at the attached image, you can see that currently the zipcodes all have a white boarder around them. I'd really like to have a black border. I am trying to set the MapPolyon (and MapPath) Stroke, but that doesn't seem to have an effect. Instead they're coming out white.
Can anyone see what I am doing wrong? Thanks!
I have loaded in a KML file containing U.S. zipcode areas which are then filled in via Information.Colorizer. If you look at the attached image, you can see that currently the zipcodes all have a white boarder around them. I'd really like to have a black border. I am trying to set the MapPolyon (and MapPath) Stroke, but that doesn't seem to have an effect. Instead they're coming out white.
foreach (var mapgon in list){ ToolTip tooltip = new ToolTip(); tooltip.Content = (mapgon.GetType() == typeof(MapPath)) ? ((MapPath)mapgon).ExtendedData : ((MapPolygon)mapgon).ExtendedData; tooltip.ContentTemplate = this.Resources["TooltipTemplate"] as DataTemplate; ToolTipService.SetToolTip(mapgon, tooltip); if (mapgon.GetType() == typeof(MapPath)) { MapPath temp = (MapPath)mapgon; temp.Stroke = new System.Windows.Media.SolidColorBrush() { Color = System.Windows.Media.Color.FromArgb(255, 0, 0, 0) }; temp.StrokeThickness = 4; } else { MapPolygon temp = (MapPolygon)mapgon; temp.Stroke = new System.Windows.Media.SolidColorBrush() { Color = System.Windows.Media.Color.FromArgb(255, 0, 0, 0) }; temp.StrokeThickness = 4; } xInfoLayer.Items.Add(mapgon);}Can anyone see what I am doing wrong? Thanks!