Windows phone 7 Windows phone 8彩色动画

Windows phone 7 Windows phone 8彩色动画,windows-phone-7,windows-phone-8,windows-phone-8.1,Windows Phone 7,Windows Phone 8,Windows Phone 8.1,我想把屏幕的背景色从红色改为绿色,但我也希望颜色能有一种向外的效果。 我使用的代码改变了整个屏幕的颜色,但是如何显示外观效果呢? 我所说的“向外”是指从页面中心到页面末尾的颜色变化,就像一个流 <StackPanel x:Name="myStackPanel" Background="Red" Loaded="Start_Animation"> <StackPanel.Resources> <Storyboard x:Name="colorStory

我想把屏幕的背景色从红色改为绿色,但我也希望颜色能有一种向外的效果。 我使用的代码改变了整个屏幕的颜色,但是如何显示外观效果呢? 我所说的“向外”是指从页面中心到页面末尾的颜色变化,就像一个流

<StackPanel x:Name="myStackPanel" Background="Red"
  Loaded="Start_Animation">
  <StackPanel.Resources>
    <Storyboard x:Name="colorStoryboard">

      <!-- Animate the background color of the canvas from red to green
        over 4 seconds. -->
      <ColorAnimation BeginTime="00:00:00" Storyboard.TargetName="myStackPanel" 
        Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)"
        From="Red" To="Green" Duration="0:0:4" />

    </Storyboard>
  </StackPanel.Resources>
</StackPanel>

我想你想要的是一个
径向梯度笔刷(你可以叠加然后设置动画)

已经有人问过: