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