随笔分类 -  WPF

摘要:http://www.codeproject.com/Articles/26288/Simplifying-the-WPF-TreeView-by-Using-the-ViewMode 阅读全文
posted @ 2012-11-15 13:02 Jerome's Blog 阅读(311) 评论(0) 推荐(0)
摘要:<Window.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Resource/ucWindowDictionary.xaml"></ResourceDictionary> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Window.Resource. 阅读全文
posted @ 2012-11-13 15:16 Jerome's Blog 阅读(1466) 评论(0) 推荐(0)
摘要:1. 引用当前工程的资源(注意xxxx.png的build action 应设置为Resource 或Embedded Resource)<ImageBrush ImageSource="/currentAssemblyName;component/subfoldername/xxxx.png"/>2. 引用其它工程的资源 (注意xxxx.png的build action 应设置为Resource 或Embedded Resource)<ImageBrush ImageSource="pack://application:,,,/otherAss 阅读全文
posted @ 2012-11-13 15:14 Jerome's Blog 阅读(866) 评论(0) 推荐(0)
摘要:前段时间在研究winform如何绘制半透明的窗体,要达到预期的效果很是麻烦,用WPF就简单多了先来看看效果:实现windows1.xaml<Window x:Class="JStore.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300&q 阅读全文
posted @ 2012-11-05 14:22 Jerome's Blog 阅读(5403) 评论(0) 推荐(0)