daixinet

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

07 2012 档案

摘要:枚举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 阅读(1358) 评论(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 阅读(541) 评论(0) 推荐(0)

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

摘要: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 阅读(2201) 评论(0) 推荐(0)

摘要:根据设置,倒计时,语音提示Download 阅读全文
posted @ 2012-07-19 23:18 daixinet.com 阅读(1626) 评论(0) 推荐(0)