08 2011 档案

WPF做截图程序的经历
摘要:在博客园逛的时候,看见了周银辉博客上的一个截图程序(http://www.cnblogs.com/zhouyinhui/archive/2010/08/20/1804762.html)。自己心动也想写一个,经历了痛苦才勉强完成了一个半成品,只感觉自己太渺小了。有太多需要学的东西。更何况每天都有新的... 阅读全文
posted @ 2011-08-28 19:51 haiyantai 阅读(4366) 评论(5) 推荐(0)
WPF 学习笔记 Areo玻璃效果的接触
摘要:在WPF中使用Areo玻璃效果: 首先定义结构体Margins public struct Margins{ public int left; public int right; public int top; public int bottom; public Margins(thicknes... 阅读全文
posted @ 2011-08-27 15:16 haiyantai 阅读(518) 评论(0) 推荐(0)
WPF学习笔记(六)
摘要:Inline对象的继承树如下: Object--DispatcherObject--DependencyObject--ContentElement--FrameworkContentElement--TextElement--Inline--Run Span---Italic . Bold..H... 阅读全文
posted @ 2011-08-26 14:54 haiyantai 阅读(463) 评论(0) 推荐(0)
WPF示例: 简单模拟Windows资源管理器
摘要:现附上主要代码: using System;using System.Windows;using System.Windows.Media;using System.Windows.Media.Imaging;using System.Windows.Input;using System.Win... 阅读全文
posted @ 2011-08-26 09:58 haiyantai 阅读(3663) 评论(3) 推荐(3)
WPF学习笔记(五)Brush
摘要:画刷是WPF中最常用的对象之一,主要在System.Windows.Media命名空间内,Brush的继承树为 object---dispatchobject----dependencyObject---Freezable---Animatable---Brush---GradientBrush... 阅读全文
posted @ 2011-08-23 16:24 haiyantai 阅读(2187) 评论(0) 推荐(0)
WPF学习笔记(四)
摘要:在WPF中获取程序运行路径有以下几个方法; 1. Environment.CurrentDirectory :"c:\bin\Debug\" 2: AppDomain.CurrentDomain.BaseDirectory 3. AppDomain.CurrentDomain.SetupInf... 阅读全文
posted @ 2011-08-22 22:58 haiyantai 阅读(295) 评论(0) 推荐(0)
WPF学习笔记 一个小示例
摘要:using System;using System.Windows;using System.Windows.Input; namespace xiaohai.TextInput{ class Example : Application { [STAThread] public static vo... 阅读全文
posted @ 2011-08-22 16:32 haiyantai 阅读(249) 评论(0) 推荐(0)
WPF学习笔记(三)
摘要:窗口是程序的主要交互界面,窗口的位置与大小往往不容忽视。在WPF中,width与height属性是由Window继承自FramworkElement对象。是设备无关单位(1/96英寸),它与你的分辨率及DPI设置有关,如果程序中没有显示的指定它们的值,默认值为NaN(非数字)。 可以使用Actual... 阅读全文
posted @ 2011-08-22 16:26 haiyantai 阅读(259) 评论(0) 推荐(0)
WPF学习笔记(二)
摘要:Window类的继承树: Object ---DispatcherObject(abstract) ---- Application----DependencyObject---Visual(abstract)---UIElement---Control--Window .在一个程序中你只能创建一... 阅读全文
posted @ 2011-08-22 15:37 haiyantai 阅读(436) 评论(0) 推荐(0)