8,735
社区成员
发帖
与我相关
我的任务
分享
<UserControl.Triggers>
<EventTrigger>
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard>
<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(StackPanel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
<EasingColorKeyFrame KeyTime="00:00:03" Value="#FF80C0FF"/>
</ColorAnimationUsingKeyFrames>
<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(StackPanel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
<EasingColorKeyFrame KeyTime="00:00:03" Value="#FFEFFFFF"/>
</ColorAnimationUsingKeyFrames>
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</UserControl.Triggers>
<UserControl
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" x:Class="Zthermo.AirTable" ……>
<Storyboard x:Name="LayoutRootAni">
<ColorAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="LayoutRoot"
Storyboard.TargetProperty="(StackPanel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
<EasingColorKeyFrame KeyTime="00:00:03" Value="#FF80C0FF"/>
</ColorAnimationUsingKeyFrames>
<ColorAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="LayoutRoot"
Storyboard.TargetProperty="(StackPanel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
<EasingColorKeyFrame KeyTime="00:00:03" Value="#FFEFFFFF"/>
</ColorAnimationUsingKeyFrames>
</Storyboard>
<StackPanel x:Name="LayoutRoot" Loaded="LayoutRoot_Loaded" Style="{StaticResource SPBackStyle}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="LayoutRoot_Loaded">
<ei:ControlStoryboardAction Storyboard="{StaticResource LayoutRootAni}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
…………
<StackPanel x:Name="LayoutRoot" Loaded="Loaded" Style="{StaticResource SPBackStyle}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="LayoutRoot_Loaded">
<ei:ControlStoryboardAction Storyboard="{StaticResource LayoutRootAni}"/>
</i:EventTrigger>
</i:Interaction.Triggers>