daixinet

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年8月22日

摘要: 0、更改模板效果:代码: ... 阅读全文
posted @ 2012-08-22 15:40 daixinet.com 阅读(30760) 评论(0) 推荐(3) 编辑

2012年8月21日

摘要: http://code.msdn.microsoft.com/windowsdesktop/Dynamic-Image-Button-in-WPF-caec28b7#content 阅读全文
posted @ 2012-08-21 14:39 daixinet.com 阅读(1248) 评论(0) 推荐(0) 编辑

2012年8月16日

摘要: 在WPF中设计登录窗口关闭时打开主窗口,自动生成的App.xaml不能满足要求,1、把App.xaml的属性窗口中的生成操作设定为 无2、添加Program类 static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { LoginWindow loginForm = new LoginWindow(); ... 阅读全文
posted @ 2012-08-16 14:26 daixinet.com 阅读(14348) 评论(7) 推荐(1) 编辑

摘要: (25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9]) 阅读全文
posted @ 2012-08-16 10:56 daixinet.com 阅读(286) 评论(0) 推荐(0) 编辑

摘要: WPF和Silverlight环境下KeyDown和KeyUp的本身不同,其中KeyDown不响应一些功能键,而KeyUp响应。 阅读全文
posted @ 2012-08-16 10:45 daixinet.com 阅读(2153) 评论(0) 推荐(0) 编辑

2012年8月15日

摘要: 今天做WPF项目,遇到添加引用后,在代码中找不到引用,原来项目的目标框架为.NET Framework 4 Client Profile,把框架改为.NET Framework 4,编译通过 阅读全文
posted @ 2012-08-15 11:17 daixinet.com 阅读(248) 评论(0) 推荐(0) 编辑

2012年7月31日

摘要: 枚举m_Theme.HorizontalAlignment = (HorizontalAlignment)Enum.Parse(typeof(HorizontalAlignment), m_HorizontalAlignment);结构m_Theme.FontWeight = (FontWeight)System.ComponentModel.TypeDescriptor.GetConverter(typeof(FontWeight)).ConvertFromString(m_FontWeightName); 阅读全文
posted @ 2012-07-31 15:39 daixinet.com 阅读(1348) 评论(0) 推荐(0) 编辑

摘要: 今天做主题时,需要访问外部的xaml文件,方法:using (FileStream s = new FileStream("C:\\Control.xaml", FileMode.Open)) { ResourceDictionary rd = System.Windows.Markup.XamlReader.Load(s) as ResourceDictionary; this.Resources.MergedDictionaries.Clear(); this.Resources... 阅读全文
posted @ 2012-07-31 11:08 daixinet.com 阅读(526) 评论(0) 推荐(0) 编辑

2012年7月30日

摘要: AppDomain.CurrentDomain.BaseDirectory 阅读全文
posted @ 2012-07-30 16:50 daixinet.com 阅读(1209) 评论(0) 推荐(0) 编辑

2012年7月20日

摘要: WPF中没有直接提供播放Flash的控件。可以使用WebBrowser来打开,代码如下:<Window x:Class="Nankang.Itacati.CapiWpfDebug.UI.FlashWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="FlashWindow" Height=&qu 阅读全文
posted @ 2012-07-20 16:53 daixinet.com 阅读(2185) 评论(0) 推荐(0) 编辑