WPFwiki, wpf, wiki, .net 3.0, windows presentation foundation, FAQ, free resources, solution, development, microsoft Home of the world's largest WPF FAQ
Edit

Category

Controls

Edit

Question

The StatusBar control generates a strange layout for my child items. What is happening?

Edit

Answer

By default, the StatusBar uses a DockPanel to layout the StatusBar items. What is important to understand is that by default the DockPanel docks its children to the left, except for the last child, which takes the remaining space. To produce the layout you desire, you could provide a different ItemsPanelTemplate for the StatusBar's ItemsPanel property that uses another type of Panel: StackPanel, Grid, Canvas, etc. Also, you could modify the DockPanel.Dock property of each StatusBarItem of the StatusBar to create a custom layout.

Edit

Source Link

Charles Petzold's Blog

All content is Copyright ©2007 Xceed Software Inc. unless otherwise indicated. See the Terms of Service. Contributors must read and agree to the Contribution Policy. WPFwiki is brought to you by Xceed, makers of the powerful yet free Xceed DataGrid for WPF.