Note: This API is now obsolete. Please use the ScaleLine control in the ESRI.ArcGIS.Client.Toolkit namespace.
Identifies the Map dependency property.
| Visual Basic (Declaration) | |
|---|---|
Public Shared ReadOnly MapProperty As DependencyProperty | |
| C# | |
|---|---|
public static readonly DependencyProperty MapProperty | |
Property Fields are used for binding to other objects in the code-behind class file.
For most circumstances using the MapProperty Field to bind to other objects may not be necessary; consider using the ScaleBar.Map property instead.
| C# | Copy Code |
|---|---|
//Assuming that a ScaleBar (named ScaleBar1) and a Map (named Map1) are previously defined, the //ScaleBar1.Map can be OneTime bound to Map1. System.Windows.Data.Binding myBinding = new System.Windows.Data.Binding(); myBinding.ElementName = "Map1"; ScaleBar1.SetBinding(ESRI.ArcGIS.Client.ScaleBar.MapProperty, myBinding); | |
| VB.NET | Copy Code |
|---|---|
'Assuming that a ScaleBar (named ScaleBar1) and a Map (named Map1) are previously defined, the 'ScaleBar1.Map can be OneTime bound to Map1. Dim myBinding As System.Windows.Data.Binding = New System.Windows.Data.Binding() myBinding.ElementName = "Map1" ScaleBar1.SetBinding(ESRI.ArcGIS.Client.ScaleBar.MapProperty, myBinding) | |
Target Platforms:Windows Phone 7