<Button x:Name="ZoomFullExtent" Height="20" FontSize="8" Width="20" ToolTipService.ToolTip="Full Extent" Margin="2,0,2,5" Style="{StaticResource ClearButtonStyle}" Foreground="White" Padding="-5" Cursor="Hand" >
<Button.Content>
<Grid x:Name="ZoomFullExtentGrid" Height="20" Width="20" ToolTipService.ToolTip="Full Extent" Margin="-1,0,2,5" >
<icons:WorldGlobe Scale="0.75" ExpandOnMouseOver="True" Cursor="Hand" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="-5" OceanFill="{StaticResource oceanBrush}" LandFill="{StaticResource landBrush}" />
</Grid>
</Button.Content>
</Button>
<i:Interaction.Triggers> <i:EventTrigger EventName="Click"> <esri:ZoomToAction TargetName="Map"> <esri:ZoomToAction.Geometry> <esri:Envelope XMin="-122.9" YMin="40.9" XMax="-117.9" YMax="30.1" /> </esri:ZoomToAction.Geometry> </esri:ZoomToAction> </i:EventTrigger> </i:Interaction.Triggers>
Extent="{StaticResource StartExtent}"<esri:Envelope x:Key="StartExtent" XMin="-140" YMin="25" XMax="-90" YMax="60" />
<Button x:Name="ZoomFullExtent" Height="20" FontSize="8" Width="20" ToolTipService.ToolTip="Full Extent" Margin="2,0,2,5" Style="{StaticResource ClearButtonStyle}" Foreground="White" Padding="-5" Cursor="Hand">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<esri:ZoomToAction TargetName="{Binding ElementName=Minimal.MainPage.Map}">
<esri:ZoomToAction.Geometry>
<esri:Envelope
XMax="-113.071260498"
XMin="-125.47464635"
YMax="42.48326291"
YMin="32.060457634" />
</esri:ZoomToAction.Geometry>
</esri:ZoomToAction>
</i:EventTrigger>
</i:Interaction.Triggers>
<Button.Content>
<Grid x:Name="ZoomFullExtentGrid" Height="20" Width="20" ToolTipService.ToolTip="Full Extent" Margin="-1,0,2,5" >
<icons:WorldGlobe Scale="0.75" ExpandOnMouseOver="True" Cursor="Hand" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="-5" OceanFill="{StaticResource oceanBrush}" LandFill="{StaticResource landBrush}" />
</Grid>
</Button.Content>
</Button>
private void ZoomFullExtent_Click(object sender, RoutedEventArgs e)
{
if (Map != null)
Map.ZoomTo(Map.Layers.GetFullExtent());
}