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