Select to view content in your preferred language

Problem of FillSymbol

782
1
05-11-2012 05:39 PM
YassineEL_JADIDI
Deactivated User
Hi,
i applied the sample of toolbar :  http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolBarWidget
it work good but the problem is when i want to zoom in or zoom out... i dont see the red rectangle (DefaultFillSymbol).
any idea about this problem please ?
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
Check that the DefaultFillSymbol is defined in your XAML:
   <Grid x:Name="LayoutRoot" Background="White">
        <Grid.Resources>
            <esri:SimpleFillSymbol x:Key="DefaultFillSymbol" Fill="#33FF0000" BorderBrush="Red" 
                                          BorderThickness="2" />
        </Grid.Resources>
.....



and check that your code behind is using this symbol:
MyDrawObject = new Draw(MyMap)
{
FillSymbol = LayoutRoot.Resources["DefaultFillSymbol"] as ESRI.ArcGIS.Client.Symbols.FillSymbol,
.......
0 Kudos