Event Trigger Label.Loaded : Label « Windows Presentation Foundation « VB.Net Tutorial






<Window  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Label Content = "Interesting...">
  <Label.Triggers>
    <EventTrigger RoutedEvent = "Label.Loaded">
      <EventTrigger.Actions>
        <BeginStoryboard>
          <Storyboard TargetProperty = "Height">
            <DoubleAnimation From ="40" To = "200" Duration = "0:0:4" 
              RepeatBehavior = "Forever"/>
          </Storyboard>
        </BeginStoryboard>
      </EventTrigger.Actions>
    </EventTrigger>
  </Label.Triggers>
</Label>
</Window>
WPF Event Trigger Label Loaded








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