C#
Falcon2000
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C# NPOI读取Excel文件导致OutOfMemoryException的问题
C#读取Excel文件时,如果Excel文件的记录数比较多,可能导致OutOfMemoryException异常。查了一下资料在这里找到了解决办法:http://poi.apache.org/components/spreadsheet/quick-guide.html#FileInputStreamFiles vs InputStreamsWhen opening a workbook, either a .xls HSSFWorkbook, or a .xlsx XSSFWorkbook原创 2021-04-08 17:49:19 · 3099 阅读 · 3 评论 -
关于WPF Combox数据绑定
这两天遇到的问题,终于解决了。记录一下!问题:WPF中Combox绑定了数据,选择时没有问题。但当绑定值改变时,Combox中的SelectItem没有更新。在网上查了些资料,最后发现绑定的对象需要实现Equals这个方法就可以。如: public class Order : PropertyNotifier, IEquatable<Order> { private string _orderNo = string.Empty; pri...原创 2021-01-13 13:41:34 · 2665 阅读 · 1 评论 -
WPF:切换到其它窗口,再切回应用,模态窗口不可见
在开发应用遇到这个问题,发现只需将弹出窗口的所有者为当前窗口即可。如: ConfigureWindow configureWindow= new ConfigureWindow { Owner = this //指定窗口的所有者为当前窗口 }; configureWindow.ShowDialog();...原创 2020-11-21 17:39:47 · 510 阅读 · 0 评论 -
WPF中ListView排序实现(2022.12.25有更新)
要实现ListView点击某一列进行排序,需要处理列点击事件<Windowx:Class="ListViewSort.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"Title="MainWindow"Height="300"Width="300"...原创 2020-10-23 20:57:15 · 1814 阅读 · 1 评论
分享