随笔分类 -  C# WPF编程

摘要:转: https://blog.csdn.net/dnazhd/article/details/90369905 阅读全文
posted @ 2022-04-01 22:17 探索的动机 阅读(211) 评论(0) 推荐(0) 编辑
摘要:转: https://www.cnblogs.com/caizl/p/4555683.html 阅读全文
posted @ 2022-04-01 21:59 探索的动机 阅读(19) 评论(0) 推荐(0) 编辑
摘要:转: https://blog.csdn.net/zls365365/article/details/123220365 阅读全文
posted @ 2022-04-01 21:26 探索的动机 阅读(43) 评论(0) 推荐(0) 编辑
摘要:当文件属性的生成操作设置为嵌入资源(Embedded Resource)时,读取方式如下: string name = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name + @"Resource\dhxy2\lianya 阅读全文
posted @ 2022-03-30 21:42 探索的动机 阅读(1342) 评论(0) 推荐(1) 编辑
摘要:/// <summary> /// 查找窗体上的子元素 /// </summary> /// <typeparam name="T">要查找的子元素的类型</typeparam> /// <param name="dependencyObject">父级元素</param> /// <param n 阅读全文
posted @ 2021-12-26 21:50 探索的动机 阅读(302) 评论(0) 推荐(0) 编辑
摘要:原理: 在屏幕的分别使用左、上、下和右四个矩形填满屏幕,在鼠标按下拖动的时候,获取鼠标拖动形成的矩形区域。松开鼠标后,将矩形区域内的屏幕保存为图片 ScreenCutWnd.xaml <Window x:Class="Goldou_Comment_WPF.Comment.ScreenCutWnd" 阅读全文
posted @ 2021-12-26 21:42 探索的动机 阅读(364) 评论(0) 推荐(0) 编辑
摘要:获取 DataGrid 选中的单元格的信息DataGridCellInfo cell_Info = this.studentTable.SelectedCells[0]; studentTableItem student_Info = cell_Info.Item as studentTableIt 阅读全文
posted @ 2019-01-14 09:00 探索的动机 阅读(1875) 评论(0) 推荐(0) 编辑
摘要:Storyboard std = new Storyboard(); DoubleAnimation a = new DoubleAnimation(); a.From =0; a.To =400; a.AutoReverse = true; a.Duration = new Duration(Ti 阅读全文
posted @ 2019-01-14 08:58 探索的动机 阅读(524) 评论(0) 推荐(0) 编辑
摘要:窗体: IntPtr hwnd = new WindowInteropHelper(this).Handle; 控件: IntPtr hwnd = ((HwndSource)PresentationSource.FromVisual(uielement)).Handle; 阅读全文
posted @ 2019-01-14 08:56 探索的动机 阅读(2246) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示