Solved! Go to Solution.
xmlns:esri="http://schemas.esri.com/arcgis/client/2009"> <Grid x:Name="LayoutRoot" Background="White"> <esri:Map x:Name="MyMap"/> <Grid HorizontalAlignment="Right" VerticalAlignment="Top" Margin="10" > <Rectangle Fill="#77919191" Stroke="Gray" RadiusX="10" RadiusY="10" Margin="0" > <Rectangle.Effect> <DropShadowEffect/> </Rectangle.Effect> </Rectangle> <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Background="Transparent" Margin="10"> <RadioButton x:Name="StreetsRadioButton" Tag="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" IsChecked="true" Margin="5,0,0,0" Foreground="White" GroupName="Layers" Content="Streets" Click="RadioButton_Click"/> <RadioButton x:Name="TopoRadioButton" Tag="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" Margin="5,0,0,0" Foreground="White" GroupName="Layers" Content="Topo" Click="RadioButton_Click"/> <RadioButton x:Name="ImageryRadioButton" Tag="http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" Margin="5,0,0,0" Foreground="White" GroupName="Layers" Content="Imagery" Click="RadioButton_Click"/> </StackPanel> </Grid> <esri:MagnifyingGlass x:Name="MyMagnifyingGlass" Visibility="Visible" HorizontalAlignment="Left" VerticalAlignment="Top" Map="{Binding ElementName=MyMap}" > <esri:MagnifyingGlass.Layer> <esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/> </esri:MagnifyingGlass.Layer> </esri:MagnifyingGlass> </Grid>
private void RadioButton_Click(object sender, RoutedEventArgs e) { MyMagnifyingGlass.Layer = new ArcGISTiledMapServiceLayer() { Url = ((RadioButton)sender).Tag as string }; }