随笔分类 -  WPF

摘要:控制 MediaElement(播放、暂停、停止、音量和速度) WPF中对于多媒体的支持非常完整,一般都是通过MediaElement来实现的。 http://msdn.microsoft.com/zh-cn/library/ms748248.aspx 一个关键问题就是:MediaElement 的 阅读全文
posted @ 2017-04-25 18:08 Hao0 阅读(497) 评论(0) 推荐(0)
摘要:1 System.Windows.Application.Current.Dispatcher.BeginInvoke(new Action(()=> { 2 3 //··················· 4 5 })) 阅读全文
posted @ 2017-04-11 10:18 Hao0 阅读(167) 评论(0) 推荐(0)
摘要:触屏滚动实现 设置属性 在ScrollViewer的xaml代码那里加上 在ScrollViewer的xaml代码那里加上 然后cs里加上 阅读全文
posted @ 2017-01-10 15:24 Hao0 阅读(2476) 评论(0) 推荐(2)
摘要:FrameworkElementFactory gridFactory = new FrameworkElementFactory(typeof(Grid)); gridFactory.SetValue(Grid.MarginProperty, new Thickness(5)); //gridFa 阅读全文
posted @ 2016-09-26 09:11 Hao0 阅读(2262) 评论(0) 推荐(0)
摘要:第一步: 页面 首先引用命名空间 xmlns:wfi="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration" xmlns:wf="clr-namespace:System.Windows.Fo 阅读全文
posted @ 2016-08-18 11:55 Hao0 阅读(4233) 评论(1) 推荐(0)
摘要:private ContentControl cc = null; private void muiscPlay(object sender, RoutedEventArgs e) { string name = ((ContentControl)sender).Tag.ToString(); if 阅读全文
posted @ 2016-08-18 11:21 Hao0 阅读(2449) 评论(0) 推荐(0)