
概述 <ListBox x:Name="xxx"> <ListBox.ItemContainerStyle> <Style TargetType="ListBoxItem"> <Setter Property="HorizontalContentAlignment" Value="Stretch"/> </Style> </ListBox.ItemCon <@R_404_6818@Box x:name="xxx"> <@R_404_6818@Box.ItemContainerStyle> <Style targettype="@R_404_6818@BoxItem"> <Setter Property="HorizontalContentAlignment" Value="Stretch"/> </Style> </@R_404_6818@Box.ItemContainerStyle> <@R_404_6818@Box.ItemTemplate> <DataTemplate> <StackPanel> <GrID> <TextBlock Text="hello" HorizontalAlignment="left"/> <TextBlock Text="world" HorizontalAlignment="Right"/> </GrID> </StackPanel> </DataTemplate> </@R_404_6818@Box.ItemTemplate> </@R_404_6818@Box> 总结
以上是内存溢出为你收集整理的Silverlight 中 自定义的 ListBoxItem如何自适应ListBox的宽度全部内容,希望文章能够帮你解决Silverlight 中 自定义的 ListBoxItem如何自适应ListBox的宽度所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
评论列表(0条)