---
title: "StatusBar control Demo"  
description: "In WPF XAML StatusBar  element is used to create status bar control in WPF. As like as main menu, status bars are specialized toolbars. They support t"  
author: "Anonymous User"  
published: 2011-04-05  
updated: 2019-09-07  
canonical: https://www.mindstick.com/articles/537/statusbar-control-demo  
category: "wpf"  
tags: ["wpf"]  
reading_time: 1 minute  

---

# StatusBar control Demo

In WPF XAML **<StatusBar />** element is used to create [status bar](https://www.mindstick.com/articles/98/using-progress-bar-status-bar-timer-control-in-csharp-dot-net) control in WPF. As like as main menu, status bars are [specialized](https://yourviews.mindstick.com/audio/1209/caregivers-support-personnel-s-function-in-specialized-disability-accommodation) toolbars. They [support](https://yourviews.mindstick.com/view/81072/pakistan-wants-enmity-not-support-from-india-during-coronavirus-pandemic) the same feature and customization mechanism but have a few [differences](https://yourviews.mindstick.com/view/83516/ideological-differences-between-gandhi-and-bose) in [default settings](https://answers.mindstick.com/qa/95596/how-do-i-reset-firefox-to-default-settings). We can use status bar to provide information about status of our [application](https://www.mindstick.com/articles/12824/calculator-application-in-android) such as line number, [date time](https://www.mindstick.com/blog/386/retrieve-sql-server-installation-date-time), current working control etc.\

##### The following code snippet represents use of status bar control

```
<Grid>        <StatusBar Height="30" HorizontalAlignment="Left" Margin="12,276,0,0" Name="statusBar1" VerticalAlignment="Top" Width="479" >            <Grid>                <Grid.RowDefinitions>                    <RowDefinition />                </Grid.RowDefinitions>                <Grid.ColumnDefinitions>                    <ColumnDefinition />                    <ColumnDefinition />                    <ColumnDefinition />                </Grid.ColumnDefinitions>                <TextBlock x:Name="txtMessage" Text="Status Control Demo" Grid.Column="0" Grid.Row="0" />                <ProgressBar x:Name="progressbar1" Grid.Column="1" Grid.Row="0" Width="150" Value="50" />                <Button x:Name="btnStatusDemo" Grid.Column="3" Grid.Row="0" Width="Auto" Content="Status Control Button" />            </Grid></StatusBar>
```

In this demonstration I have taken one status bar control and grid [control inside](https://www.mindstick.com/forum/294/problem-in-access-the-control-inside-the-user-control) status bar control. Then I had put three [controls](https://www.mindstick.com/articles/66/how-to-create-controls-at-run-time-in-csharp-dot-net) in status bar such as <TextBlock /> control, <ProgressBar /> control and <Button /> control etc.

##### Output of the following code snippet is as follows

![StatusBar control Demo](https://www.mindstick.com/mindstickarticle/4fd10a3a-2079-45ee-adba-85f8c90a51d8/images/1c442251-daf0-4171-8fed-76f77ac6eb27.png)

---

Original Source: https://www.mindstick.com/articles/537/statusbar-control-demo

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
