Select to view content in your preferred language

SimpleFillSymbol outline with DashDot

1182
2
Jump to solution
10-26-2012 10:14 AM
DavidCarrera_Castillo
New Contributor
Hi everybody!

Is there any way to create a SimpleFillSymbol with DashDot outline (border)?

Something like:
<esri:SimpleLineSymbol x:Key="DefaultLineSymbol" Color="Green" Style="DashDot" Width="4" />

But with SimpleFillSymbol.

Thanks.....
0 Kudos
1 Solution

Accepted Solutions
DominiqueBroux
Esri Frequent Contributor
Is there any way to create a SimpleFillSymbol with DashDot outline (border)?


You have to change the Template of the FillSymbol and set the StrokeDashArray property:

<esri:FillSymbol BorderBrush="Red" BorderThickness="2" Fill="Green" >     <esri:FillSymbol.ControlTemplate>         <ControlTemplate>             <Path x:Name="Element"                   Stroke="{Binding Symbol.BorderBrush}"                   StrokeThickness="{Binding Symbol.BorderThickness}"                   StrokeDashArray="5,3"                   Fill="{Binding Symbol.Fill}" />         </ControlTemplate>     </esri:FillSymbol.ControlTemplate> </esri:FillSymbol>

View solution in original post

0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
Is there any way to create a SimpleFillSymbol with DashDot outline (border)?


You have to change the Template of the FillSymbol and set the StrokeDashArray property:

<esri:FillSymbol BorderBrush="Red" BorderThickness="2" Fill="Green" >     <esri:FillSymbol.ControlTemplate>         <ControlTemplate>             <Path x:Name="Element"                   Stroke="{Binding Symbol.BorderBrush}"                   StrokeThickness="{Binding Symbol.BorderThickness}"                   StrokeDashArray="5,3"                   Fill="{Binding Symbol.Fill}" />         </ControlTemplate>     </esri:FillSymbol.ControlTemplate> </esri:FillSymbol>
0 Kudos
DavidCarrera_Castillo
New Contributor
Thanks Dominique BROUX, I checked this property and was exactly what I needed.

🙂
0 Kudos