Label with Data Binding : Label « Windows Presentation Foundation « VB.Net Tutorial






<Window x:Class="ClassicControls.LabelTest"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="LabelTest" Height="300" Width="300"
    >
  <StackPanel Margin="5">
    <Label Target="{Binding ElementName=txtA}">Choose _A</Label>
    <TextBox Name="txtA"></TextBox>
    <Label Target="{Binding ElementName=txtB}">Choose _B</Label>
    <TextBox Name="txtB"></TextBox>

  </StackPanel>
</Window>
WPF Label With Data Binding








16.10.Label
16.10.1.Label with Data BindingLabel with Data Binding
16.10.2.String Label contentString Label content
16.10.3.Event Trigger Label.LoadedEvent Trigger Label.Loaded
16.10.4.Access key underline with LabelAccess key underline with Label
16.10.5.DockPanel with LabelsDockPanel with Labels
16.10.6.StackPanel with Windows ControlsStackPanel with Windows Controls