Select to view content in your preferred language

Navigation Tool

611
1
09-07-2011 02:30 PM
ChrisStelly
New Contributor
Is there any way to stop the Navigation tool from expanding on the MouseOver event, without having to make a custom tool?

It seems counterproductive to me to have the buttons move around when you mouse over them, it *makes* you miss.
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
You can customize the template for Navigation control: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/05/20/Use-control-templates-to-customize.... Look into VisualStateGroups where it says "MouseOver".

Currently, it has:
<VisualState x:Name="MouseOver">
 <Storyboard>
  <DoubleAnimation BeginTime="00:00:00" Duration="0:0:0.1" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" To="1"/>
  <DoubleAnimation BeginTime="00:00:00" Duration="0:0:0.1" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" To="1"/>
  <DoubleAnimation BeginTime="00:00:00" Duration="0:0:0.1" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.Opacity)" To="0.75"/>
 </Storyboard>
</VisualState>
0 Kudos