摘要: 我们先看看效果如何:xaml文件: 我们具体看看代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Wind... 阅读全文
posted @ 2013-08-04 22:36 如梦不是梦 阅读(748) 评论(0) 推荐(0) 编辑
摘要: 我们创建一个wpf应用程序,我们把里面的xaml文件全部删除,添加一个新类:如下图:然后我们cs文件中的代码:using System;using System.Collections.Generic;using System.Text;using System.Windows.Controls;using System.Windows;using System.Windows.Media;using System.Windows.Shapes;namespace 无xaml的WPF{ //首先继承System.Windows.Application对象 class subMain... 阅读全文
posted @ 2013-08-04 11:48 如梦不是梦 阅读(494) 评论(0) 推荐(0) 编辑
摘要: Dispatcher 类提供用于管理线程工作项队列的服务。效果演示: 后台简答代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using... 阅读全文
posted @ 2013-08-04 11:02 如梦不是梦 阅读(583) 评论(0) 推荐(0) 编辑
摘要: WPF中的几种处理线程的工作方式:1.简单的DispatcherTimer类似Timer控件2.需要处理UI同步时,Dispatcher DispatcherOpertion3.增强的Thread对象 System.Windows.Threading4.BackgroundWorker组建对象下面看下展示着几种处理方式:xaml文件 using System;using System.Collections.Generic;using System.Linq;using... 阅读全文
posted @ 2013-08-04 09:53 如梦不是梦 阅读(2490) 评论(1) 推荐(0) 编辑
摘要: WPF 体系结构主题提供 Windows Presentation Foundation (WPF) 类层次结构,涵盖了 WPF 的大部分主要子系统,并描述它们是如何交互的。System.ObjectSystem.Threading.DispatcherObjectSystem.Windows.DependencyObjectSystem.Windows.Media.VisualSystem.Windows.UIElementSystem.Windows.FrameworkElementSystem.Windows.Controls.ControlSystem.ObjectWPF 主要编程模型 阅读全文
posted @ 2013-08-04 07:58 如梦不是梦 阅读(963) 评论(0) 推荐(0) 编辑