摘要: 1 通用部分 例如,需要数据绑定、scrollview中放置Listbox导致尺寸未限制、改变列表控件模板但是未使用ItemsPresenter 可以参考 优化控件性能 - WPF .NET Framework | Microsoft Learn 主要的设置是 <Setter Property="V 阅读全文
posted @ 2024-04-17 19:57 hurui12 阅读(2) 评论(0) 推荐(0) 编辑
摘要: public partial class App : Application { #region DoEvent private static DispatcherOperationCallback exitFrameCallback = new DispatcherOperationCallbac 阅读全文
posted @ 2024-04-09 15:25 hurui12 阅读(12) 评论(0) 推荐(0) 编辑
摘要: int cal(int x,int y) { if (x==0) { return y; } return cal(y % x, x); } 阅读全文
posted @ 2022-12-04 16:01 hurui12 阅读(16) 评论(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 阅读(2240) 评论(0) 推荐(0) 编辑
摘要: CSS绝对定位absolute详解 margin-top 不生效的原因和解决方法 阅读全文
posted @ 2021-10-11 17:20 hurui12 阅读(14) 评论(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 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 作者:一叶知秋 出处:http://www.cnblogs.com/xiaomingg/ 一、ComboBox基本样式 ComboBox有两种状态,可编辑和不可编辑状态。通过设置IsEditable属性可以切换控件状态。 先看基本样式效果: 基本样式代码如下: <!--ComboBox--> <!- 阅读全文
posted @ 2020-11-25 17:25 hurui12 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 【WPF】DispatcherFrame 是个啥玩意儿 对于ui界面后台更新写的很详细 阅读全文
posted @ 2020-11-03 11:35 hurui12 阅读(202) 评论(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 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 在NET framework中 中文文档使用的UTF8,我们通常使用Encoding.Default拿去。 但是在NET Core通常使用Encoding.GetEncoding("GB2312"); 否则容易出现乱码问题。 阅读全文
posted @ 2020-08-20 13:51 hurui12 阅读(340) 评论(0) 推荐(0) 编辑