Select to view content in your preferred language

Print: Selected polygon is black

346
0
02-22-2013 10:01 AM
DorothyMortenson
Deactivated User
Hello,
I have an application where the user types in a water right number and it zooms to the location and highlights the waterright in a translucent yellow. They can also make a selection on the screen. If the user mouses over, it highlights in a cyan, so you can tell which water right within the selction go to which item in a table.  I am using the 10.1 print capabilities in ArcServer.

When the user goes to print, the selected polygon is black. They have to clear the selection before printing, but then they wouldn't be able to highlight the water right they wanted.

I am using a FillSymbol.  If I switch to using a SimpleFillSymbol, it works, but I would loose the ability to hover over a water right (which highlights which water right is which in a table).

I don't know if its possible. It seemed like it was fine before this new print utility.

My symbol code is:
  <esri:FillSymbol x:Key="ResultsFillSymbol">
                    <esri:FillSymbol.ControlTemplate>
                        <ControlTemplate x:Name="CustomPolygonTemplate">
                            <Grid>
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualState x:Name="Normal">
                                            <Storyboard>
                                                <ColorAnimation Storyboard.TargetName="Element"
                                                Storyboard.TargetProperty="(Fill).(Color)" 
                                                To="#88FFEA99" Duration="0:0:0.1" />
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <ColorAnimation Storyboard.TargetName="Element"
                                                Storyboard.TargetProperty="(Fill).(Color)"
                                                To="#8800FFFF" Duration="0:0:0.1" />
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Selected">
                                            <Storyboard>
                                                <ColorAnimation Storyboard.TargetName="Element"
                                                Storyboard.TargetProperty="(Fill).(Color)"
                                                 To="#8800FFFF" Duration="0:0:0.1" />
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <Path x:Name="Element" Stroke="#FFCC33" 
                                StrokeStartLineCap="Round" StrokeThickness="2" Fill="#88FFEA99"
                                StrokeLineJoin="Round" StrokeEndLineCap="Round" />

                        </Grid>
                        </ControlTemplate>
                    </esri:FillSymbol.ControlTemplate>
                </esri:FillSymbol>


All I would like to do is make the Normal state clear - I tried To="{x:Null}", but that just brings it to the path fill color.

Ideas?
0 Kudos
0 Replies