随笔分类 - C# WPF编程
摘要:转: https://blog.csdn.net/dnazhd/article/details/90369905
阅读全文
摘要:转: https://www.cnblogs.com/caizl/p/4555683.html
阅读全文
摘要:转: https://blog.csdn.net/zls365365/article/details/123220365
阅读全文
摘要:当文件属性的生成操作设置为嵌入资源(Embedded Resource)时,读取方式如下: string name = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name + @"Resource\dhxy2\lianya
阅读全文
摘要:/// <summary> /// 查找窗体上的子元素 /// </summary> /// <typeparam name="T">要查找的子元素的类型</typeparam> /// <param name="dependencyObject">父级元素</param> /// <param n
阅读全文
摘要:原理: 在屏幕的分别使用左、上、下和右四个矩形填满屏幕,在鼠标按下拖动的时候,获取鼠标拖动形成的矩形区域。松开鼠标后,将矩形区域内的屏幕保存为图片 ScreenCutWnd.xaml <Window x:Class="Goldou_Comment_WPF.Comment.ScreenCutWnd"
阅读全文
摘要:获取 DataGrid 选中的单元格的信息DataGridCellInfo cell_Info = this.studentTable.SelectedCells[0]; studentTableItem student_Info = cell_Info.Item as studentTableIt
阅读全文
摘要:Storyboard std = new Storyboard(); DoubleAnimation a = new DoubleAnimation(); a.From =0; a.To =400; a.AutoReverse = true; a.Duration = new Duration(Ti
阅读全文
摘要:窗体: IntPtr hwnd = new WindowInteropHelper(this).Handle; 控件: IntPtr hwnd = ((HwndSource)PresentationSource.FromVisual(uielement)).Handle;
阅读全文