Silverlight 中 自定义的 ListBoxItem如何自适应ListBox的宽度

Silverlight 中 自定义的 ListBoxItem如何自适应ListBox的宽度,第1张

概述 <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的宽度所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1013605.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-22
下一篇2022-05-22

发表评论

登录后才能评论

评论列表(0条)

    保存