摘要: 1 通用部分 例如,需要数据绑定、scrollview中放置Listbox导致尺寸未限制、改变列表控件模板但是未使用ItemsPresenter 可以参考 优化控件性能 - WPF .NET Framework | Microsoft Learn 主要的设置是 <Setter Property="V 阅读全文
posted @ 2024-04-17 19:57 hurui12 阅读(69) 评论(0) 推荐(0)
摘要: public partial class App : Application { #region DoEvent private static DispatcherOperationCallback exitFrameCallback = new DispatcherOperationCallbac 阅读全文
posted @ 2024-04-09 15:24 hurui12 阅读(76) 评论(0) 推荐(0)
摘要: 修改svg颜色需要将svg作为内联元素 <article> <a href="https://facebook.com/username" target="_blank"> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xli 阅读全文
posted @ 2021-10-18 19:38 hurui12 阅读(2295) 评论(0) 推荐(0)
摘要: http://www.voidcn.com/article/p-foffrlfj-bso.html Json.Net喜欢在一个对象上使用默认(无参)构造函数。如果有多个构造函数,并且您希望Json.Net使用非默认构造函数,那么可以将[JsonConstructor]属性添加到要让Json.Net调 阅读全文
posted @ 2020-12-15 14:52 hurui12 阅读(183) 评论(0) 推荐(0)
摘要: 作者:一叶知秋 出处:http://www.cnblogs.com/xiaomingg/ 一、ComboBox基本样式 ComboBox有两种状态,可编辑和不可编辑状态。通过设置IsEditable属性可以切换控件状态。 先看基本样式效果: 基本样式代码如下: <!--ComboBox--> <!- 阅读全文
posted @ 2020-11-25 17:25 hurui12 阅读(125) 评论(0) 推荐(0)
摘要: 【WPF】DispatcherFrame 是个啥玩意儿 对于ui界面后台更新写的很详细 阅读全文
posted @ 2020-11-03 11:35 hurui12 阅读(223) 评论(0) 推荐(0)
摘要: <TextBox Name="txtRunAfter" Grid.Column="4" Text="{Binding Mode=TwoWay, Path=RunAfter}" Style="{StaticResource TestStepTextBox}"/> 在Combox的绑定中,经常要对数据进 阅读全文
posted @ 2020-10-21 19:24 hurui12 阅读(602) 评论(0) 推荐(0)
摘要: 在NET framework中 中文文档使用的UTF8,我们通常使用Encoding.Default拿去。 但是在NET Core通常使用Encoding.GetEncoding("GB2312"); 否则容易出现乱码问题。 阅读全文
posted @ 2020-08-20 13:51 hurui12 阅读(352) 评论(0) 推荐(0)
摘要: List<string> Listfiles = Directory.GetFiles(@"C:\Users\hurui\Desktop\MyFolder","*PJ*",SearchOption.AllDirectories).ToList(); //第一个参数为文件夹名 第二个星号和sql的模糊 阅读全文
posted @ 2020-08-20 11:44 hurui12 阅读(821) 评论(0) 推荐(0)
摘要: 原文 https://www.cnblogs.com/zeroes/p/6031651.html?utm_source=itdadao&utm_medium=referral 在开发中经常会写个公有静态类记录日志,如下: /// <summary> /// Writes the error. /// 阅读全文
posted @ 2020-07-24 10:25 hurui12 阅读(156) 评论(0) 推荐(0)