0
所以我使用Storyboard调整了ListBox的大小。相关的钥匙Resize ListBox not resizing its items
<DoubleAnimation Duration="0:0:0.75" To="-276" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="ItemList" d:IsOptimized="True"/>
但是物品越来越挤。是否有办法避免这种情况?
1.你的意思是被压扁了什么?你能显示一个截图吗? 2. TranslateY用于移动项目,而不是调整它的大小。我不知道你如何通过翻译来调整列表框的大小。你的意思是压扁还是剪裁? – 2012-03-22 21:25:20