代码改变世界

随笔档案-2015年03月

WPF 绑定

2015-03-06 15:36 by Dorisoy, 710 阅读, 收藏,
摘要: WPF里分三种Binding:Binding,PriorityBinding,MultiBinding,这三种Binding的基类都是BindingBase,而BindingBase又继承于MarkupExtensionBinding提供对绑定定义的高级别访问,绑定将绑定目标对象(通常为 WPF 元... 阅读全文

使用 Cordova+Visual Studio 创建跨平台移动应用(3)

2015-03-06 09:54 by Dorisoy, 481 阅读, 收藏,
摘要: 1 背景 本章节是关于Telerik AppBuilder for Visual Studio的。 目前(2014.12)为Telerik公司Telerik Platform的一部分,Telerik Platform功能是Cross-PlatformMobile Development for iO... 阅读全文

使用 Cordova+Visual Studio 创建跨平台移动应用(2)

2015-03-06 09:42 by Dorisoy, 445 阅读, 收藏,
摘要: 目前开发移动应用有三种模式:Native、Hybird、Web,若要开发跨平台的移动应用,又希望与本地API交互,那么Hybird是一个非常好的选择。 作为一个.Net程序员,可以使用熟悉的IDE,Visual Studio来进行开发移动应用,目前已经有基于Visual Studio的扩展来帮助我... 阅读全文

使用 WPF 创建预加载控件

2015-03-04 16:30 by Dorisoy, 993 阅读, 收藏,
摘要: IntroductionAt the time when WPF applications do a very long process like getting response from a web server, download file from a distant server, sea... 阅读全文

A WPF/MVVM Countdown Timer

2015-03-04 16:20 by Dorisoy, 708 阅读, 收藏,
摘要: IntroductionThis article describes the construction of a countdown timer application written in C# andWPF, usingLaurent Bugnion'sMVVMLight Toolkit. Th... 阅读全文

使用WPF创建无边框窗体

2015-03-04 11:08 by Dorisoy, 5245 阅读, 收藏,
摘要: 一、无边框窗口添加窗口阴影实际上在WPF中添加无边框窗口的窗口阴影十分简单。首先,设置WindowStyle="None"以及AllowsTransparency="True"使得窗口无边框。并对Window添加DropShadowEffect效果并设定相关参数,在这里我根据设计师的要求设置Shad... 阅读全文

在WPF中处理Windows消息

2015-03-04 10:56 by Dorisoy, 1777 阅读, 收藏,
摘要: 在Winform中 处理Windows消息通过重写WndProc方法在WPF中 使用的是System.Windows. Sytem.Windows.Controls等名字空间,没有WndProc函数WPF中处理消息首先要获取窗口句柄,创建HwndSource对象 通过HwndSource对象添加消息... 阅读全文