Displaying Information with the StatusBar Control

WPF enables you to place status bars at the bottom of a Window. This is accomplished by declaring a StatusBar object that nests StatusBarItems elements. The good news is that you are not limited to adding text to a StatusBar because you can add several kinds of visual elements. The following example shows adding text and a ProgressBar into a StatusBar:

<StatusBar>    <StatusBarItem Name="Item1" Content="Ready"/>    <StatusBarItem Name="Item2">        <ProgressBar Name="Progress1"            Minimum="0" Maximum="200" Value="50"            Width="50" Height="15" />    </StatusBarItem></StatusBar>

Figure 29.19 shows the result of the preceding code. You access members ...

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.