Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Silverlight 调整列表框大小-不调整其项目的大小_Silverlight_Windows Phone 7_Listbox_Resize - Fatal编程技术网

Silverlight 调整列表框大小-不调整其项目的大小

Silverlight 调整列表框大小-不调整其项目的大小,silverlight,windows-phone-7,listbox,resize,Silverlight,Windows Phone 7,Listbox,Resize,因此,我正在使用故事板调整列表框的大小。相关密钥 <DoubleAnimation Duration="0:0:0.75" To="-276" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="ItemList" d:IsOptimized="True"/> 但是这些项目正在被压扁。有没有办法避免这种情况?如

因此,我正在使用故事板调整列表框的大小。相关密钥

<DoubleAnimation Duration="0:0:0.75" To="-276" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="ItemList" d:IsOptimized="True"/>


但是这些项目正在被压扁。有没有办法避免这种情况?

如果您正在调整列表框的大小,请使用

  • 情节提要.TargetProperty=“(FrameworkElement.Width)”
和/或

  • 情节提要.TargetProperty=“(FrameworkElement.Height)”
这不会以任何方式影响项目,但会允许调整列表框的大小


TranslateY将仅沿Y轴移动控件,而不会调整其大小。

1。被压扁是什么意思?你能给我一张截图吗?2.TranslateY用于移动项目,而不是调整其大小。我不确定您如何使用Translate调整列表框的大小。3.你是说压扁的还是剪短的?