会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
咖啡加点盐
博客园
首页
新随笔
联系
订阅
管理
2024年4月25日
wpf DataTemplate 动态模板内容
摘要: <DataGridTemplateColumn Width="50" Header="选择"> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <ContentControl> <ContentControl.Style> <Style Ta
阅读全文
posted @ 2024-04-25 19:48 咖啡加点盐
阅读(26)
评论(0)
推荐(0)
编辑
2024年3月25日
c# 访问UI线程
摘要: System.Windows.Application.Current.Dispatcher.Invoke(new Action(() => {MessageBox.Show("FTP服务器链接失败!"); }));
阅读全文
posted @ 2024-03-25 15:25 咖啡加点盐
阅读(22)
评论(0)
推荐(0)
编辑
2024年2月29日
在.Net FrameWork类库中添加WPF窗体的办法
摘要: 在csproj中的 <PropertyGroup>节点里添加 <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids><Warn
阅读全文
posted @ 2024-02-29 11:02 咖啡加点盐
阅读(23)
评论(0)
推荐(0)
编辑
2024年1月12日
wpf 自定义控件 绑定数据源不生效的解决方案
摘要: https://blog.csdn.net/qq_40197926/article/details/125678007 不能为UserControl 设置 DataContext而应该为 FrameworkElement设置DataContext将Control1中的 this.DataContex
阅读全文
posted @ 2024-01-12 14:49 咖啡加点盐
阅读(67)
评论(0)
推荐(0)
编辑
2024年1月9日
C#中的几种list类型
摘要: .Net为我们提供了众多的泛型集合。比如, Stack<T>先进后出, Queue<T>先进先出, List<T>集合元素可排序,支持索引, LinkedList<T>,双向链表的泛型实现,不支持索引; ISet<T>不允许被复制,他有2个实现,一个是HashSet<T>,不维持集合元素的排序,另一
阅读全文
posted @ 2024-01-09 10:39 咖啡加点盐
阅读(65)
评论(0)
推荐(0)
编辑
2023年11月15日
WPF TextBox 允许输入数字及字母的工具类
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Windows.Contr
阅读全文
posted @ 2023-11-15 13:53 咖啡加点盐
阅读(61)
评论(0)
推荐(0)
编辑
2023年11月14日
几十款 WPF 控件 - UI 库,总有一款适合你
摘要: https://it.sohu.com/a/593254296_121124363
阅读全文
posted @ 2023-11-14 19:58 咖啡加点盐
阅读(36)
评论(0)
推荐(0)
编辑
2023年11月3日
Prism模块化
摘要: https://blog.csdn.net/weixin_52360147/article/details/124367375 https://blog.csdn.net/qq_48492162/article/details/131977507?utm_medium=distribute.pc_r
阅读全文
posted @ 2023-11-03 14:54 咖啡加点盐
阅读(3)
评论(0)
推荐(0)
编辑
2023年10月10日
wpf中和action非常相像的一种消息传递方法
摘要: //父窗体 Messenger.Default.Register<string>("AddClose", e => { this.Close(); }); //子窗体 Messenger.Default.Send("AddClose");
阅读全文
posted @ 2023-10-10 15:13 咖啡加点盐
阅读(22)
评论(0)
推荐(0)
编辑
2023年7月13日
ef6 拼接where查询条件
摘要: Expression<Func<RecipeInfo, bool>> expression = t => true; expression = expression.And(p => p.IsEfjective==0); switch (type) { case 0: expression = ex
阅读全文
posted @ 2023-07-13 14:00 咖啡加点盐
阅读(218)
评论(0)
推荐(0)
编辑
下一页