设置ListBox的Item的样式

<ListBox.ItemContainerStyle>
                <Style TargetType="Control">
                    <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                    <Setter Property="VerticalContentAlignment" Value="Stretch"/>
                    <Setter Property="Height" Value="42"/>
                </Style>
            </ListBox.ItemContainerStyle>

posted @ 2014-01-21 11:22  长白山  阅读(681)  评论(0编辑  收藏  举报