随笔分类 -  WPF

客户端应用
摘要:CheckBox 阅读全文
posted @ 2021-04-09 15:48 wesson2019 阅读(150) 评论(0) 推荐(0)
摘要:Style、FontFamily 阅读全文
posted @ 2020-12-29 14:38 wesson2019 阅读(148) 评论(0) 推荐(0)
摘要:visual studio 技巧 阅读全文
posted @ 2020-12-24 21:02 wesson2019 阅读(732) 评论(0) 推荐(0)
摘要:语言国际化 阅读全文
posted @ 2020-11-26 21:06 wesson2019 阅读(443) 评论(0) 推荐(0)
摘要:WessonControl 自定义样式 自定义控件 阅读全文
posted @ 2020-09-17 16:49 wesson2019 阅读(254) 评论(0) 推荐(0)
摘要:OfType和Cast作为 Enumerable中的一个简单的扩展方法来使用。 Cast Cast把每个元素都转换为目标类型,遇到不是正确类型的任何元素的时候,就会出错。 var item = cmbData.Items.Cast<Source<string, string>>().FirstOrD 阅读全文
posted @ 2020-09-15 17:51 wesson2019 阅读(140) 评论(0) 推荐(0)
摘要:DataGrid用法技巧 阅读全文
posted @ 2020-09-15 15:18 wesson2019 阅读(534) 评论(0) 推荐(0)
摘要:ChartColorPalette 调色板 系列 色系 饼图 LiveCharts.Wpf 阅读全文
posted @ 2020-09-03 17:22 wesson2019 阅读(1014) 评论(0) 推荐(0)
摘要:分段线 BorderStyle_Segment <Border BorderBrush="{StaticResource BorderStyle_Segment}" BorderThickness="1"/> <DrawingBrush x:Key="BorderStyle_Segment" Vie 阅读全文
posted @ 2020-08-19 14:04 wesson2019 阅读(170) 评论(0) 推荐(0)
摘要:Button 阅读全文
posted @ 2020-08-13 18:23 wesson2019 阅读(187) 评论(0) 推荐(0)
摘要:Dispatcher,调度器。 系统在MainWinow起来之后就给当前UI线程分配好了Dispatcher,这个Dispatcher属于MainWindow这个实例的,原因在于MainWindow继承自DispatcherObject类,而DispatcherObject包含了一个公共属性Disp 阅读全文
posted @ 2020-07-31 10:10 wesson2019 阅读(627) 评论(0) 推荐(0)
摘要:Ctrl+w,上移 Ctrl+s,下移 AddHandler(Keyboard.KeyDownEvent, (KeyEventHandler)HandleKeyDownEvent); private void HandleKeyDownEvent(object sender, KeyEventArg 阅读全文
posted @ 2020-07-29 11:32 wesson2019 阅读(413) 评论(0) 推荐(0)
摘要:CollectionView 分组,排序,过滤,导航 阅读全文
posted @ 2020-07-24 16:09 wesson2019 阅读(854) 评论(0) 推荐(0)
摘要:列可调 CanUserResizeColumns="True" 阅读全文
posted @ 2020-07-21 12:06 wesson2019 阅读(100) 评论(0) 推荐(0)
摘要:SolidColorBrush + Color using System.Windows.Media; /// <summary> /// 画刷-红色 /// </summary> public static SolidColorBrush BackgroundColorRed = new Soli 阅读全文
posted @ 2020-07-20 10:57 wesson2019 阅读(774) 评论(0) 推荐(0)
摘要:自定义属性,依赖属性,附加属性 阅读全文
posted @ 2020-07-13 18:37 wesson2019 阅读(469) 评论(0) 推荐(0)
摘要:属性binding方式 绑定到DataContext <!--绑定到DataContext--> <Button Content="{Binding DataTime}"/> <Button Content="{Binding RelativeSource={RelativeSource self} 阅读全文
posted @ 2020-06-17 15:04 wesson2019 阅读(3348) 评论(0) 推荐(0)
摘要:虚化、第一次执行 阅读全文
posted @ 2020-06-15 17:36 wesson2019 阅读(678) 评论(0) 推荐(0)
摘要:StaticResource从自身的容器开始,向上查找资源,而DynamicResource从自身开始,向上查找资源。也就是说StaticResource不支持向前引用(自身创建引用点后,不能使用自身以后定义的资源)。 StaticResource不会在运行时改变资源,而DynamicResourc 阅读全文
posted @ 2020-06-12 15:09 wesson2019 阅读(349) 评论(0) 推荐(0)
摘要:触发器 阅读全文
posted @ 2020-06-12 15:08 wesson2019 阅读(782) 评论(0) 推荐(0)