Intersoft ClientUI Documentation
ElementName Property



Gets or sets the element name for the target data binding.
Syntax
Public Property ElementName As String
Dim instance As BindingDescriptor
Dim value As String
 
instance.ElementName = value
 
value = instance.ElementName
public string ElementName {get; set;}
public:
property String^ ElementName {
   String^ get();
   void set (    String^ value);
}
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.

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.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

BindingDescriptor Class
BindingDescriptor Members

Concepts

Data Binding Overview

Send Feedback