2010-10-29 92 views

回答

3

也許你應該使用兩個橢圓並動態改變它們的不透明度。

+0

不幸的是它如何擴大標記,但+1是一個很好的橫向解決方案。 – 2010-10-30 10:13:35

2

您可以爲漸變畫筆的單個漸變停留點設置動畫效果(並將它們設置爲相同的顏色,您將獲得「純色」顏色) 這是一個將漸變設置爲Panel.Background動畫的示例的一些目標:

<Storyboard> 
    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background). 
        (GradientBrush.GradientStops)[0].(GradientStop.Color)" 
           Storyboard.TargetName="sometarget"> 
    <EasingColorKeyFrame KeyTime="0" 
         Value="Blue" /> 
    </ColorAnimationUsingKeyFrames> 
    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background). 
        (GradientBrush.GradientStops)[1].(GradientStop.Color)" 
           Storyboard.TargetName="sometarget"> 
    <EasingColorKeyFrame KeyTime="0" 
         Value="Green" /> 
    </ColorAnimationUsingKeyFrames> 
</Storyboard>