积极答复者
使用Blend如何修改Grid,Canvas,Ellipse等对像的VSM

问题
-
现有如下代码
<Canvas> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="CommonStates"> <VisualState x:Name="MouseOver"> <Storyboard RepeatBehavior="ForEver"> <DoubleAnimation BeginTime="0" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" From="1" To="10" Duration="00:00:01" /> <DoubleAnimation BeginTime="0" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" From="1" To="10" Duration="00:00:01" /> <DoubleAnimation BeginTime="0" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.Opacity)" From="1" To="0" Duration="00:00:01" /> </Storyboard> </VisualState> <!--If normal state is not specified, the animation will keep going until a mouse out. Keep it empty to transition back to original symbol. --> <VisualState x:Name="Normal" /> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <!--Strobe ellipse--> <!--Note that IsHitTestVisible="False" on the strobe symbol, so only the static ellipse will trigger mouse over/mouse out--> <Ellipse Height="40" Width="40" Canvas.Left="-20" Canvas.Top="-20" RenderTransformOrigin="0.5,0.5" x:Name="ellipse" IsHitTestVisible="False" > <Ellipse.RenderTransform> <ScaleTransform /> </Ellipse.RenderTransform> <Ellipse.Fill> <RadialGradientBrush> <GradientStop Color="#00FF0000" /> <GradientStop Color="#FFFF0000" Offset="0.25"/> <GradientStop Color="#00FF0000" Offset="0.5"/> <GradientStop Color="#FFFF0000" Offset="0.75"/> <GradientStop Color="#00FF0000" Offset="1"/> </RadialGradientBrush> </Ellipse.Fill> </Ellipse> <!--Static symbol on top--> <Ellipse Height="40" Width="40" Canvas.Left="-20" Canvas.Top="-20" Fill="#FFFF0000" x:Name="ellipse1"/> </Canvas>
如何在Blend里编辑这段代码的VSM,试了好久还是没找到办法,不想手写了。。。。请各路大神指点旃向