会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
鱼和熊掌
博客园
首页
新随笔
联系
订阅
管理
2024年11月18日
MFC CChartCtrl 滚轮缩放
摘要: 原文来自:MFC그래프 라이브러리, ChartCtrl 마우스 휠 기능 추가 BOOL CChartCtrl::OnMouseWheel(UINT nFlags, short zDelta, CPoint pt) { ScreenToClient(&pt); double MinVal = 0;
阅读全文
posted @ 2024-11-18 15:16 无处不在-超超
阅读(77)
评论(0)
推荐(0)
2023年12月26日
winform datetimepicker 设置默认值时 Text 与value不一致
摘要: 解决方法: 1 DateFrom.Checked = true; 2 DateFrom.Value = DateTime.Today.AddDays(-7); 3 if (DateFrom.Handle == null) 4 System.Threading.Thread.Sleep(0);//防止
阅读全文
posted @ 2023-12-26 15:39 无处不在-超超
阅读(122)
评论(0)
推荐(0)
2023年12月22日
CommunityToolkit.Mvvm 之 通过一个属性控制一个按钮是否禁用 及 按钮执行费时需任务的方法
摘要: 要达到的目的: 通过一个属性控制一个按钮是否禁用 当按钮执行费时需任务时,按下禁用按钮,任务完成后自动解除禁用 1. 属性定义 1 [ObservableProperty] 2 [NotifyCanExecuteChangedFor(nameof(SettingParamCommand))]//属性
阅读全文
posted @ 2023-12-22 14:27 无处不在-超超
阅读(291)
评论(0)
推荐(0)
2023年12月21日
Wpf NLog 显示日志到 RichTextBox
摘要: 1. 项目中引入库 NLog 2. 引入三个文件: WpfRichTextBoxTarget.cs 1 // 2 // Copyright (c) 2004-2011 Jaroslaw Kowalski <jaak@jkowalski.net> 3 // 4 // All rights reserv
阅读全文
posted @ 2023-12-21 10:57 无处不在-超超
阅读(971)
评论(0)
推荐(0)
2023年12月20日
DataTrigger 和变量绑定实例 让一个Ellipse的Fill颜色与变量绑定 Label的Contnet与变量关联
摘要: 1 <Ellipse 2 MinWidth="30" 3 MinHeight="30" 4 HorizontalAlignment="Center" 5 VerticalAlignment="Center"> 6 <Ellipse.Style> 7 <Style TargetType="{x:Typ
阅读全文
posted @ 2023-12-20 09:29 无处不在-超超
阅读(85)
评论(0)
推荐(0)
2023年12月18日
进一步学习 CommunityToolkit.Mvvm
摘要: 1. 属性绑定 private string title; public string Title { get;set; } 可用以下属性方式替换,生成器会自动生成; [ObservableProperty] private string title; 另一种情况:命令 private bool i
阅读全文
posted @ 2023-12-18 15:40 无处不在-超超
阅读(478)
评论(0)
推荐(0)
进一步学习 CommunityToolkit.Mvvm 之 Messenger
摘要: 一、带token 1. 订阅消息 WeakReferenceMessenger.Default.Register<UserMessage, string>(this, "MyToken", (r, m) => {}); 2. 发送消息 WeakReferenceMessenger.Default.S
阅读全文
posted @ 2023-12-18 15:39 无处不在-超超
阅读(1095)
评论(0)
推荐(0)
2023年12月4日
wpf学习 Prism 使用入门
摘要: 一、手动添加 安装包 Prism.DryIoc app.xaml.cs 修改 继承基类为: PrismApplication实现其中的抽象成员:CreateShell 用于指定启动的窗口类 1 public partial class App : PrismApplication 2 { 3 pro
阅读全文
posted @ 2023-12-04 13:49 无处不在-超超
阅读(1002)
评论(0)
推荐(0)
2023年11月30日
WPF资源
摘要: 一、静态动态资源 1.资源定义 <Window.Resources> <SolidColorBrush x:Key="SolidColor" Color="Red"/> </Window.Resources> 2.资源使用:动态、静态 <Button Content="button1" Border
阅读全文
posted @ 2023-11-30 14:27 无处不在-超超
阅读(31)
评论(0)
推荐(0)
2023年11月29日
WPF MVVM 学习理解
摘要: <StackPanel> <TextBox Text="{Binding Name}"/> <TextBox Text="{Binding Title}"/> <Button Height="50" Command="{Binding ShowCommand}"/> </StackPanel> 数据
阅读全文
posted @ 2023-11-29 15:00 无处不在-超超
阅读(23)
评论(0)
推荐(0)
公告