WPF 加载微调器 [英] WPF loading spinner

查看:33
本文介绍了WPF 加载微调器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目标是显示应用程序正在运行的信息.因此,我正在寻找使用 WPF/MVVM 的加载微调器的智能实现示例.

The goal is to display the information that the application is working. So I'm looking for an intelligent implementation sample of a loading spinner using WPF / MVVM.

推荐答案

我写了这个用户控件 这可能会有所帮助,它将显示带有旋转进度条的消息,以表明它当前正在加载某些内容.

I wrote this user control which may help, it will display messages with a progress bar spinning to show it is currently loading something.

  <ctr:LoadingPanel x:Name="loadingPanel"
                    IsLoading="{Binding PanelLoading}"
                    Message="{Binding PanelMainMessage}"
                    SubMessage="{Binding PanelSubMessage}" 
                    ClosePanelCommand="{Binding PanelCloseCommand}" />

它有几个可以绑定的基本属性.

It has a couple of basic properties that you can bind to.

这篇关于WPF 加载微调器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆