Windows phone 7 是否可以更改列表框';故事板中的项目模板?

Windows phone 7 是否可以更改列表框';故事板中的项目模板?,windows-phone-7,silverlight-3.0,storyboard,Windows Phone 7,Silverlight 3.0,Storyboard,我有一个根据页面方向(纵向/横向)更改视觉状态的行为。我有一个列表框,它的ItemTemplate有一个比较复杂的DataTemplate。是否可以从VisualState的故事板更改ItemTemplate?我的XAML业力很低,Blend不允许我这么做(它更改了原始的ItemTemplate,不添加故事板条目) 请记住,这是针对Windows Phone 7(因此是Silverlight 3)的。我可能没有得到答案,因为它太明显了。我告诉过你我的XAML业力很低。这是解决办法。只需将此Obj

我有一个根据页面方向(纵向/横向)更改视觉状态的行为。我有一个列表框,它的ItemTemplate有一个比较复杂的DataTemplate。是否可以从VisualState的故事板更改ItemTemplate?我的XAML业力很低,Blend不允许我这么做(它更改了原始的ItemTemplate,不添加故事板条目)


请记住,这是针对Windows Phone 7(因此是Silverlight 3)的。

我可能没有得到答案,因为它太明显了。我告诉过你我的XAML业力很低。这是解决办法。只需将此ObjectAnimationUsingKeyFrames添加到情节提要:

<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ItemsControl.ItemTemplate)" 
                               Storyboard.TargetName="PartakersListBox">
    <DiscreteObjectKeyFrame KeyTime="0" 
                            Value="{StaticResource LandscapePartakerDataTemplate}" />
</ObjectAnimationUsingKeyFrames>


我还没有返回到Blend,以查看模板是否可编辑。将在下面更新。

我可能没有得到答案,因为答案太明显了。我告诉过你我的XAML业力很低。这是解决办法。只需将此ObjectAnimationUsingKeyFrames添加到情节提要:

<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ItemsControl.ItemTemplate)" 
                               Storyboard.TargetName="PartakersListBox">
    <DiscreteObjectKeyFrame KeyTime="0" 
                            Value="{StaticResource LandscapePartakerDataTemplate}" />
</ObjectAnimationUsingKeyFrames>

我还没有返回到Blend,以查看模板是否可编辑。将在下面更新