- 博客(9)
- 资源 (24)
- 收藏
- 关注
原创 Wix使用
xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension"> Please install the .NET Framework then run this installer again">
2017-04-25 15:54:54
992
原创 Data Grid后台代码添加column
private void AddColumn(string header) { DataGridTextColumn addColumn = new DataGridTextColumn(); addColumn.Header = header; addColumn.Binding = new Bind
2017-04-25 14:47:14
845
转载 C#对List<object>进行多属性排序
最近做对象集合多属性排序,在网上找了好久,最终找到一个。原文地址https://www.codeproject.com/articles/29219/sorting-collections-by-multiple-properties
2017-03-15 16:09:41
1435
原创 Datagrid通过button控制row上下滚动效果
按钮中 Dispatcher.Invoke( new Action( delegate () { DataGrid.SelectedIndex = 0;
2017-03-13 17:56:32
513
原创 使用RenderTargetBitmap获取WPF控件图像
在获取控件图像的时候,需要使用border包含控件,否则因为margin和其他设置导致获取的图像不对。
2017-03-08 09:29:21
2968
1
原创 C#,大文件读取时快速定位,部分读取
当文件很大时,不可能把所有数据读入内存,所以对于具有相同长度的排列数据,可以采用偏移定位法直接将指针移动到起始位置,然后读取对应长度。在C#中可以使用FileStream类的seek方法。
2016-10-12 16:47:57
4850
原创 WPF开发,Image与ImageSource
GUI调用dll中的函数A改变后台绑定数据,如果前台为Image,后台为ImageSource。在更新时,不能将dll中的ImageSource直接赋值给界面的后台对象的ImageSource,要将DLL数据存为Bitmap,在界面转换成ImageSource。否则运行时产生异常。
2016-10-12 16:32:27
2141
原创 WPF的Grid面板加载图片鼠标画框
最近开始做WPF界面使用Grid显示图像,通过鼠标画框对部分图像进行选择xaml代码<Window x:Class="GridImageSelect.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx
2012-09-14 12:01:53
2269
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人