How do I customize the WPF StatusBar layout?
- by Kent Boogaart
Adding more than one child to a WPF StatusBar results in poor layout with little option to customize. For example, this code:
<StatusBar>
<StatusBarItem>
<TextBlock>Ready</TextBlock>
</StatusBarItem>
<StatusBarItem>
<TextBlock>Set</TextBlock>
</StatusBarItem>
</StatusBar>
Results in:
This is not the ideal layout, since the "Set" is squeezed right up against the "Ready".
How do I gain full control over the layout of the WPF StatusBar control?