Magnifier
This sample demonstrates the Magnifier control. Click and drag the magnifier over the map to see a zoomed-in view of the map within the magnifying glass. As you can see, layers can be shown within the magnifying glass that are not included within the map.
Download Sample Application<UserControl x:Class="ArcGISWPFSDK.LocalMagnify" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:esri="http://schemas.esri.com/arcgis/client/2009"> <Grid x:Name="LayoutRoot" Background="White"> <esri:Map x:Name="MyMap" Extent="-15000000,2000000,-7000000,8000000" WrapAround="True" MinimumResolution="2445.98490512499"> <esri:ArcGISLocalTiledLayer ID="myBaseMap" Path="..\\Data\\TPKs\\Topographic.tpk"/> </esri:Map> <Grid HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,10,10,0" > <Rectangle Fill="#775C90B2" Stroke="Gray" RadiusX="10" RadiusY="10" Margin="0,0,0,5" > <Rectangle.Effect> <DropShadowEffect/> </Rectangle.Effect> </Rectangle> <Rectangle Fill="#66FFFFFF" Stroke="DarkGray" RadiusX="5" RadiusY="5" Margin="10,10,10,15" /> <Image x:Name="MyMagnifyImage" Source="/Assets/Images/magglass.png" Canvas.ZIndex="10" Margin="25, 20, 20, 25" Stretch="UniformToFill" Width="32" Height="50" MouseLeftButtonDown="MyMagnifyImage_MouseLeftButtonDown" /> </Grid> <Canvas> <esri:Magnifier x:Name="MyMagnifier" ZoomFactor="3" Canvas.ZIndex="10" Map="{Binding ElementName=MyMap}" > <esri:Magnifier.Layers> <esri:ArcGISTiledMapServiceLayer ID="MagnifyImageLayer" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" /> </esri:Magnifier.Layers> </esri:Magnifier> </Canvas> </Grid> </UserControl>
5/16/2014