By default, ListBoxItems occupy the width required by their contents, not by the width of the containing ListBox. This causes your optimistically formatted columns in each ListBox to fail to align.
Instead, add this in the Resources
<Style x:Key="StretchingListBoxItemStyle" TargetType="ListBoxItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
</Style>
and add ItemContainerStyle="{StaticResource StretchingListBoxItemStyle}" to your ListBox attributes.
Strewth.
No comments:
Post a Comment