Scaleline

This sample demonstrates the use of the ScaleLine control to display map scale in map units. The ScaleLine changes size and display values as the map scale changes.
Download Sample Application<UserControl x:Class="ArcGISWPFSDK.LocalScaleline" 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"> <esri:Map x:Name="MyMap" Extent="-15000000,2000000,-7000000,8000000" WrapAround="True"> <esri:ArcGISLocalTiledLayer ID="myBaseMap" Path="..\\Data\\TPKs\\Topographic.tpk"/> </esri:Map> <esri:ScaleLine Map="{Binding ElementName=MyMap}" Margin="10" HorizontalAlignment="Left" VerticalAlignment="Bottom" Foreground="Black"/> </Grid> </UserControl>
5/16/2014