摘要:
<Window.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Resource/ucWindowDictionary.xaml"></ResourceDictionary> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Window.Resource. 阅读全文
摘要:
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 阅读全文
摘要:
前段时间在研究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 阅读全文