Intersoft.Client.Framework Namespace > BindingDescriptor Class : ElementName Property |
Public Property ElementName As String
Dim instance As BindingDescriptor Dim value As String instance.ElementName = value value = instance.ElementName
public string ElementName {get; set;}
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.
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.
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