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

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

Gets or sets the height of the ScaleBar Control.

Syntax

Visual Basic (Declaration) 
Public Property BarHeight As Double
C# 
public double BarHeight {get; set;}

Remarks

The BarHeight of the ScaleBar Control is the total height of the graphic bars in the Control; not one of the single individual alternating sub-bars.

Example of the Scalebar BarHeight.

Example

XAMLCopy Code
<esri:ScaleBar Name="ScaleBar1" Map="{Binding ElementName=Map1}" BarHeight="50" />
C#Copy Code
//The ScaleBar Control (named ScaleBar1) was define previously in the code...
ScaleBar1.BarHeight = 50;
VB.NETCopy Code
'The ScaleBar Control (named ScaleBar1) was define previously in the code...
ScaleBar1.BarHeight = 50

Requirements

Target Platforms:Windows Phone 7

See Also

© ESRI, Inc. All Rights Reserved.