Use StatusBar : StatusBar « Windows Presentation Foundation « VB.Net Tutorial

Home
VB.Net Tutorial
1.Language Basics
2.Data Type
3.Operator
4.Statements
5.Date Time
6.Class Module
7.Development
8.Collections
9.Generics
10.Attributes
11.Event
12.LINQ
13.Stream File
14.GUI
15.GUI Applications
16.Windows Presentation Foundation
17.2D Graphics
18.I18N Internationlization
19.Reflection
20.Regular Expressions
21.Security
22.Socket Network
23.Thread
24.Windows
25.XML
26.Database ADO.net
27.Design Patterns
VB.Net
VB.Net by API
VB.Net Tutorial » Windows Presentation Foundation » StatusBar 
16.21.2.Use StatusBar
<Window x:Class="Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Use StatusBar" Height="125" Width="300">
    <Grid>
        <StatusBar Height="30" Name="StatusBar1" VerticalAlignment="Bottom">
            <StatusBarItem>
                <Label Name="lblStatus" Content="Off" />
            </StatusBarItem>
            <Separator/>
            <Image Source="c:\image.bmp" Width="15" Height="15" />
            <Separator/>
            <StatusBarItem HorizontalAlignment="Right" >
                <Label Name="lblRunning" Content="Stopped" />
            </StatusBarItem>
        </StatusBar>
        <CheckBox Height="16" HorizontalAlignment="Left" Margin="10,10,0,0" Name="chkOnOff" VerticalAlignment="Top" Width="120" Content="Active" ToolTip="Click to activate">
            <CheckBox.Triggers>
                <EventTrigger RoutedEvent="CheckBox.Checked">
                    <EventTrigger.Actions>
                        <BeginStoryboard>
                            <Storyboard>
                                <StringAnimationUsingKeyFrames Storyboard.TargetName="lblStatus"
Storyboard.TargetProperty="Content">
                                    <StringAnimationUsingKeyFrames.KeyFrames>
                                        <DiscreteStringKeyFrame Value="On" KeyTime="0:0:0" />
                                    </StringAnimationUsingKeyFrames.KeyFrames>
                                </StringAnimationUsingKeyFrames>
                                <StringAnimationUsingKeyFrames
                                    Storyboard.TargetName="lblRunning"
                                    Storyboard.TargetProperty="Content">
                                    <StringAnimationUsingKeyFrames.KeyFrames>
                                        <DiscreteStringKeyFrame Value="Running..." KeyTime="0:0:0" />
                                    </StringAnimationUsingKeyFrames.KeyFrames>
                                </StringAnimationUsingKeyFrames>
                            </Storyboard>
                        </BeginStoryboard>
                    </EventTrigger.Actions>
                </EventTrigger>
                <EventTrigger RoutedEvent="CheckBox.Unchecked">
                    <EventTrigger.Actions>
                        <BeginStoryboard>
                            <Storyboard>
                                <StringAnimationUsingKeyFrames
                                    Storyboard.TargetName="lblStatus"
                                    Storyboard.TargetProperty="Content">
                                    <StringAnimationUsingKeyFrames.KeyFrames>
                                        <DiscreteStringKeyFrame Value="Off" KeyTime="0:0:0" />
                                    </StringAnimationUsingKeyFrames.KeyFrames>
                                </StringAnimationUsingKeyFrames>
                                <StringAnimationUsingKeyFrames
                                    Storyboard.TargetName="lblRunning"
                                    Storyboard.TargetProperty="Content">
                                    <StringAnimationUsingKeyFrames.KeyFrames>
                                        <DiscreteStringKeyFrame Value="Stopped" KeyTime="0:0:0" />
                                    </StringAnimationUsingKeyFrames.KeyFrames>
                                </StringAnimationUsingKeyFrames>
                            </Storyboard>
                        </BeginStoryboard>
                    </EventTrigger.Actions>
                </EventTrigger>
            </CheckBox.Triggers>
        </CheckBox>
    </Grid>
</Window>
WPF Use Status Bar
16.21.StatusBar
16.21.1.StatusBar and StatusBarItemStatusBar and StatusBarItem
16.21.2.Use StatusBarUse StatusBar
16.21.3.Add TextBlock to StatusbarAdd TextBlock to Statusbar
16.21.4.Items that can be placed in a StatusBarItems that can be placed in a StatusBar
16.21.5.Put Image with tooltip onto statusbarPut Image with tooltip onto statusbar
16.21.6.Make Group onto StatusbarMake Group onto Statusbar
16.21.7.Add Image to StatusbarAdd Image to Statusbar
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.