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

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

Identifies the DisplayUnit dependency property.

Syntax

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

Remarks

Property Fields are used for binding to other objects in the code-behind class file.

Example

C#Copy Code
//Assuming that a ScaleBar (named ScaleBar1) and a ScaleBar (named ScaleBar2) are 
//previously defined, the ScaleBar1.DisplayUnit can be bound to the ScaleBar2.MapUnit.
System.Windows.Data.Binding myBinding = new System.Windows.Data.Binding("MapUnit");
myBinding.ElementName = "ScaleBar2";
ScaleBar1.SetBinding(ESRI.ArcGIS.Client.ScaleBar.DisplayUnitProperty, myBinding);
VB.NETCopy Code
'Assuming that a ScaleBar (named ScaleBar1) and a ScaleBar (named ScaleBar2) are 
'previously defined, the ScaleBar1.DisplayUnit can be bound to the ScaleBar2.MapUnit.
Dim myBinding As System.Windows.Data.Binding = New System.Windows.Data.Binding("MapUnit")
myBinding.ElementName = "ScaleBar2"
ScaleBar1.SetBinding(ESRI.ArcGIS.Client.ScaleBar.DisplayUnitProperty, myBinding)

Requirements

Target Platforms:Windows Phone 7

See Also

© ESRI, Inc. All Rights Reserved.