参考这个帖子我的回复:http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/990626cf-327e-4465-839b-30eb3387c77a/
用绑定对ListBoxItem (ItemContainer) 的宽度和ItemsPresenter的实际宽度相等。
<ListBox.ItemContainerStyle>
<Style TargetType="{x:Type ListBoxItem}">
<Setter Property="Width" Value="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ItemsPresenter}}, Path=ActualWidth, Mode=OneWay}"/>
</Style>
</ListBox.ItemContainerStyle>
Bob Bao [MSFT]
MSDN Community Support | Feedback to us
