0

我在缩放通过 DataTemplate 创建的 scatterViewItem 时遇到问题。

我建立了这样的东西:http: //msdn.microsoft.com/en-us/library/ff727736

我的项目也有同样的问题(如果你想看:-) mtscrumtool.codeplex.com), scatterViewItem 无法缩放。

ScatterViewItem 的数据模板如下所示:

<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>

谁能帮我?

谢谢

4

1 回答 1

0

Check the ItemContainerStyle property of the ScatterView and see if it sets CanScale="False", if not then try and set the property of the ItemContainerStyle by setting a setter of CanScale="true" property.

于 2012-07-31T08:29:32.420 回答