Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/258.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 保存功能wpf的动画_C#_Wpf - Fatal编程技术网

C# 保存功能wpf的动画

C# 保存功能wpf的动画,c#,wpf,C#,Wpf,我正在开发wpf应用程序,当我点击save按钮时,弹出窗口显示OK和Cancel,当我点击OK按钮时,Glass Hour将出现几秒钟并成功保存。。。消息将在顶部显示1或2秒钟,然后它将消失,当我们再次单击“保存”按钮时,再次单击“保存成功”。。将显示消息…plzz共享somme建议 现在我就这样工作 <Label x:Name="lblSave" Content="{Binding LblContent}" Margin="500,80,0,0" FontSize="20"

我正在开发wpf应用程序,当我点击save按钮时,弹出窗口显示OK和Cancel,当我点击OK按钮时,Glass Hour将出现几秒钟并成功保存。。。消息将在顶部显示1或2秒钟,然后它将消失,当我们再次单击“保存”按钮时,再次单击“保存成功”。。将显示消息…plzz共享somme建议

现在我就这样工作

<Label x:Name="lblSave" Content="{Binding LblContent}" Margin="500,80,0,0" FontSize="20" 
        Visibility="{Binding LblSaveVisibility}">
    <Label.Style>
        <Style TargetType="Label">
            <Style.Triggers>
                <Trigger Property="Visibility" Value="Visible">
                    <Trigger.EnterActions>
                        <BeginStoryboard >
                            <Storyboard>
                                <DoubleAnimation BeginTime="0:0:5.0" Storyboard.TargetProperty="Opacity"
                                        From="1.0" To="0.0" Duration="0:0:0.1"/>

                            </Storyboard>
                        </BeginStoryboard>
                    </Trigger.EnterActions>
                </Trigger>
            </Style.Triggers>
        </Style>
    </Label.Style>
</Label>

考虑使用计时器分派器