WPF文字间距

时间:2017-12-26 23:05:42   收藏:0   阅读:700

代码:

技术分享图片
<ItemsControl ItemsSource="{Binding Info}" FontFamily="微软雅黑" FontSize="12" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center">
    <ItemsControl.ItemsPanel>
        <ItemsPanelTemplate>
            <StackPanel Orientation="Horizontal"/>
        </ItemsPanelTemplate>
    </ItemsControl.ItemsPanel>
    <ItemsControl.ItemTemplate>
        <DataTemplate>
            <Border Margin="1">
                <ContentPresenter Content="{Binding}"/>
            </Border>
        </DataTemplate>
    </ItemsControl.ItemTemplate>
</ItemsControl>
View Code

 

原文:https://www.cnblogs.com/s0611163/p/8120456.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!