How to create status bar in wpf application?

Leave a Comment
Here i am creating status bar in wpf using design view only . I am keeping you download complete source code also with code example snippets. I am using story board here for status bar. Let's see,
Main Window
<Window x:Class="Statusbar.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <StatusBar Name="statusbar" Background="AliceBlue" VerticalAlignment="top">
            <StatusBarItem>
                <TextBlock Text="uploadingfile"/>
               
            </StatusBarItem>
            <StatusBarItem>
                <ProgressBar Height="40" Width="150" Name="progressbar">
                    <ProgressBar.Triggers>
                        <EventTrigger RoutedEvent="ProgressBar.Loaded">
                            <BeginStoryboard>
                               
                                <Storyboard >
                                    <DoubleAnimation Storyboard.TargetName="progressbar" Storyboard.TargetProperty="Value" From="0" To="150" Duration="0:0:5"/>
                                   
                                </Storyboard>
                            </BeginStoryboard>
                           
                           
                        </EventTrigger>
                       
                       
                    </ProgressBar.Triggers>
                   
                   
                </ProgressBar>
               
            </StatusBarItem>
           
        </StatusBar>
    </Grid>
</Window>
Let's see the output of status bar here.



0 comments:

Post a Comment