Intersoft ClientUI Documentation
ElementName Property
See Also  Send Feedback
Intersoft.Client.Framework Namespace > BindingDescriptor Class : ElementName Property






Gets or sets the element name for the target data binding.

Syntax

Visual Basic (Declaration) 
Public Property ElementName As String
Visual Basic (Usage)Copy Code
Dim instance As BindingDescriptor
Dim value As String
 
instance.ElementName = value
 
value = instance.ElementName
C# 
public string ElementName {get; set;}
Delphi 
public read-write property ElementName: String; 
JScript 
public function get,set ElementName : String
Managed Extensions for C++ 
public: __property string* get_ElementName();
public: __property void set_ElementName( 
   string* value
);
C++/CLI 
public:
property String^ ElementName {
   String^ get();
   void set (    String^ value);
}

Example

The following example shows how to use FindName mode to bind the target with an element with the specific name specified in ElementName property.

XAML Copy Code
<Grid Height="400" Width="550" x:Name="MainContainer" >

    <Intersoft:UXProgressBar Height="20" Maximum="700">
        <Intersoft:BindingFramework.Binding>
            <Intersoft:BindingDescriptor TargetProperty="Value" SourceProperty="Width"
                                            Mode="FindName" ElementName="MainContainer"/>
        </Intersoft:BindingFramework.Binding>
    </Intersoft:UXProgressBar>

</Grid>

This sample bind the Value property of UXProgressBar to MainContainer Width property using FindName.

Remarks

FindName is used to bind the target with an element with specific name. In this mode, you specify the ElementName that the target will be bound to.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.