我在扩展通过DataTemplate创建的scatterViewItem时遇到了问题。
我建造了这样的东西:http://msdn.microsoft.com/en-us/library/ff727736
我的项目也有同样的问题(如果你想看:-) mtscrumtool.codeplex.com),则无法缩放scatterViewItem。
ScatterViewItem的Datatemplate显示如下:
<DataTemplate x:Key="ScatterViewItemDataTemplate" >
<Border BorderThickness="2" BorderBrush="White" Margin="10">
<StackPanel Background="{DynamicResource {x:Static s:SurfaceColors.Accent3BrushKey}}">
<Label Content="{Binding Name}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="20"/>
<Label Content="{Binding CanDrag}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="18"/>
</StackPanel>
</Border>
任何人都可以帮助我吗?
由于
答案 0 :(得分:0)
检查ScatterView的ItemContainerStyle
属性,看看它是否设置了CanScale="False"
,如果没有,请尝试通过设置ItemContainerStyle
的设置器来设置CanScale="true"
的属性属性。