<esri:LineSymbol x:Key="LineSymbol">
<esri:LineSymbol.ControlTemplate>
<ControlTemplate>
<Path x:Name="Element"
Stroke="Yellow"
StrokeStartLineCap="Round"
StrokeThickness="2"
StrokeLineJoin="Round"
StrokeEndLineCap="Round">
<VisualStateManager.VisualStateGroups>
<!--<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="MouseOver">
<Storyboard>
<ColorAnimation Storyboard.TargetName="Element"
Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)"
To="Orange" />
</Storyboard>
</VisualState>
</VisualStateGroup>-->
<VisualStateGroup x:Name="SelectionStates">
<VisualState x:Name="Unselected" />
<VisualState x:Name="Selected">
<Storyboard>
<ColorAnimation Storyboard.TargetName="Element"
Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)"
To="Orange" Duration="00:00:00.25" />
<DoubleAnimation Storyboard.TargetName="Element"
Storyboard.TargetProperty="StrokeThickness"
To="3" Duration="00:00:00.25" />
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</Path>
</ControlTemplate>
</esri:LineSymbol.ControlTemplate>
</esri:LineSymbol>
<esri:LineSymbol x:Key="LineOverSymbol">
<esri:LineSymbol.ControlTemplate>
<ControlTemplate>
<Path x:Name="Element"
Stroke="LimeGreen"
StrokeStartLineCap="Round"
StrokeThickness="2"
StrokeLineJoin="Round"
StrokeEndLineCap="Round">
<VisualStateManager.VisualStateGroups>
<!--<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="MouseOver">
<Storyboard>
<ColorAnimation Storyboard.TargetName="Element"
Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)"
To="Orange" />
</Storyboard>
</VisualState>
</VisualStateGroup>-->
<VisualStateGroup x:Name="SelectionStates">
<VisualState x:Name="Unselected" />
<VisualState x:Name="Selected">
<Storyboard>
<ColorAnimation Storyboard.TargetName="Element"
Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)"
To="Green" Duration="00:00:00.25" />
<DoubleAnimation Storyboard.TargetName="Element"
Storyboard.TargetProperty="StrokeThickness"
To="3" Duration="00:00:00.25" />
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</Path>
</ControlTemplate>
</esri:LineSymbol.ControlTemplate>
</esri:LineSymbol>
|