上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 56 下一页
摘要: 在启动的时候设置:(比如App的OnStartup方法) //设置为中文 CultureInfo culture = new System.Globalization.CultureInfo("zh-cn"); System.Threading.Thread.CurrentThread.Curren 阅读全文
posted @ 2021-05-07 17:23 Lulus 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 效果如图 关键代码 <ListView> <ListView.View> <GridView> <GridViewColumn> <GridViewColumn.HeaderTemplate> <DataTemplate> <CheckBox/> </DataTemplate> </GridView 阅读全文
posted @ 2021-04-20 21:51 Lulus 阅读(733) 评论(0) 推荐(0) 编辑
摘要: TextBox在双向绑定的情况下,输入小数会出现很尴尬的情况 比如0.这样的字符串并不能被转换成小数,所以会被去掉.,变成0,所以没有办法正常的输入小数,只能通过粘贴板 通过StringFormat特性,可以很好的解决这个问题 (当然重新写控件是更灵活的方式,但是我是个懒人) <TextBox He 阅读全文
posted @ 2021-04-20 21:49 Lulus 阅读(2664) 评论(4) 推荐(2) 编辑
摘要: C# 树状结构的部分查询 .net core 获得方法名 C#中重写、重载和隐藏的概念 索引器&集合 接口和抽象类 xml文件读写 C# 反射 循环属性、字段赋值 WCF 32位程序调试报错 C#实现OBB碰撞算法 The request was aborted: Could not create 阅读全文
posted @ 2021-02-25 14:56 Lulus 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 参照SimpleVPN 使用库DotRas.for.Win7 封装一个工具类 using DotRas; using System.Linq; using System.Net; public class VPN { private string serverIP; private string a 阅读全文
posted @ 2021-02-23 21:04 Lulus 阅读(41) 评论(0) 推荐(0) 编辑
摘要: HttpClient访问https的时候报错: The request was aborted: Could not create SSL TLS secure channel. 这样修改: var url = "https://..."; if (url.ToLower().StartsWith( 阅读全文
posted @ 2021-02-23 13:32 Lulus 阅读(607) 评论(0) 推荐(0) 编辑
摘要: OracleBulkCopy是批量导入数据的工具,效率比Insert高,行为类似SQL*Loader,官方资料Bulk Copy 在OracleBulkCopy执行之前,数据库会将导入表相关的索引设置为不可用状态,以便快速导入数据 在导入数据完成后,尝试将索引还原 官方描述是 Integrity C 阅读全文
posted @ 2021-01-13 15:19 Lulus 阅读(1461) 评论(0) 推荐(0) 编辑
摘要: 翻译、总结自How to debug binding in WPF、Debug Databinding Issues in WPF、How to debug WPF bindings、Debugging Data Bindings in a WPF or Silverlight Applicatio 阅读全文
posted @ 2020-12-24 10:26 Lulus 阅读(670) 评论(0) 推荐(1) 编辑
摘要: 效果如图 使用FolderBrowserDialog System.Windows.Forms.FolderBrowserDialog dialog = new System.Windows.Forms.FolderBrowserDialog(); System.Windows.Forms.Dial 阅读全文
posted @ 2020-12-14 15:48 Lulus 阅读(2666) 评论(0) 推荐(1) 编辑
摘要: 效果如图 关键代码 <ListBox Name="imageListBox" ItemsSource="{Binding }" Width="{Binding ElementName=listBoxShowImages,Path=Width,Mode=OneWay}" Loaded="imageLi 阅读全文
posted @ 2020-12-12 11:24 Lulus 阅读(3987) 评论(2) 推荐(4) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 56 下一页