Once you create the WPF project, open the MainWindow.xaml page and follow these steps to add the StatusBar control to the window:
- Inside the Grid panel, add a StatusBar tag and set its Height to 26 and VerticalAlignment to Bottom.
- Now change its items panel template to host a Grid with five columns (we will discuss more about grid columns in the next chapter), as shown here:
<StatusBar.ItemsPanel> <ItemsPanelTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> </Grid> </ItemsPanelTemplate> </StatusBar.ItemsPanel>
- Now, inside...