我有一个 Itemscontrol,女巫在 Binding 之后包含两个项目。我的问题是第二个项目从窗口区域出来。
我的问题是 - 如何在不减小字体大小或增加窗口高度的情况下拉近项目的文本?有没有类似 HTML 的 padding 和 marging 的东西?或者其他一些技巧?
ps - 字体大小和窗口高度不得更改。
这就是它的外观:(
来源:timg.co.il)
这是代码:
<UserControl x:Class="WpfApplication4.AnnouncmentsControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="86" Width="300">
<Grid>
<ItemsControl Name="announcmentsListBox" ItemsSource="{Binding}">
</ItemsControl>
</Grid>