ViewModel 视图模型

public abstract class ViewModelBase : INotifyPropertyChanged
{
private bool isbusy; public bool IsBusy
{
get
{
return isbusy;
}
set
{
isbusy = value;
RaisePropertyChanged("IsBusy");
}
} public event PropertyChangedEventHandler PropertyChanged; protected void RaisePropertyChanged(string propertyName)
{
PropertyChangedEventHandler handler = PropertyChanged; if (handler != null)
{
handler(this, new PropertyChangedEventArgs(propertyName));
}
}
}

View 视图

<extWpfTk:BusyIndicator IsBusy="{Binding IsBusy}">
<ContentControl />
</extWpfTk:BusyIndicator>

当 IsBusy = true 时,  BusyIndicator 就开始显示出来

参考网址 http://stackoverflow.com/questions/12384012/busyindicator-using-mvvm

Extended WPF Toolkit 下载地址 http://wpftoolkit.codeplex.com/releases/view/99072

最新文章

  1. Google疯了,竟然这样!
  2. OpenJudge 2985数字组合 解析报告/DP
  3. 关于ubuntukylin安装后界面中英文混杂的问题
  4. C#中弹出新窗口
  5. SpringSecutiry权限管理手册
  6. Redis的值value(数据结构类型)
  7. sql 按年月日统计
  8. 对filter的初步认识
  9. 使用VSFTPD传输文件
  10. 虚拟机Ping不通主机解决
  11. IOS 设备备份文件详解 (二)
  12. [No00004F]史上最全Vim快捷键键位图(入门到进阶)vim常用命令总结
  13. 9、如何在Xamarin中进行iOS真机调试和发布
  14. html 第一行不缩进,第二行缩进,文字对齐
  15. mciSendCommand 音频视频播放命令函数
  16. [z]IE6各种不兼容问题
  17. JavaWeb项目中各个文件夹的作用
  18. DataGrid合并单元格(wpf)
  19. Python 并行任务技巧
  20. 判断浏览器是否支持css3属性或单位

热门文章

  1. 单源最短距离 Single Source Shortest Path
  2. table width 决定 td width
  3. Tomcat 服务器介绍
  4. MyBatis动态代理查询出错
  5. docker 构建镜像 centos7 nginx php
  6. Django - 权限分配、权限组件与CRM整合
  7. leetcode -day 15 Distinct Subsequences
  8. golang 实现并发计算文件数量
  9. python编码总结
  10. python安装virtualenv