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

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

Identifies the FillColor2 dependency property.

Syntax

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

Example

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

Remarks

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

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© ESRI, Inc. All Rights Reserved.