ArcGIS API for Windows Phone - Library Reference
MapProperty Field
See Also  Example Send comments on this topic
ESRI.ArcGIS.Client Namespace > ScaleBar Class : MapProperty Field

Note: This API is now obsolete. Please use the ScaleLine control in the ESRI.ArcGIS.Client.Toolkit namespace.

Identifies the Map dependency property.

Syntax

Visual Basic (Declaration) 
Public Shared ReadOnly MapProperty As DependencyProperty
C# 
public static readonly DependencyProperty MapProperty

Remarks

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.

Example

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.NETCopy 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)

Requirements

Target Platforms:Windows Phone 7

See Also

© ESRI, Inc. All Rights Reserved.