2024年4月25日
摘要: <DataGridTemplateColumn Width="50" Header="选择"> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <ContentControl> <ContentControl.Style> <Style Ta 阅读全文
posted @ 2024-04-25 19:48 咖啡加点盐 阅读(26) 评论(0) 推荐(0) 编辑
  2024年3月25日
摘要: System.Windows.Application.Current.Dispatcher.Invoke(new Action(() => {MessageBox.Show("FTP服务器链接失败!"); })); 阅读全文
posted @ 2024-03-25 15:25 咖啡加点盐 阅读(22) 评论(0) 推荐(0) 编辑
  2024年2月29日
摘要: 在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日
摘要: 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日
摘要: .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日
摘要: 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日
摘要: https://it.sohu.com/a/593254296_121124363 阅读全文
posted @ 2023-11-14 19:58 咖啡加点盐 阅读(36) 评论(0) 推荐(0) 编辑
  2023年11月3日
摘要: 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日
摘要: //父窗体 Messenger.Default.Register<string>("AddClose", e => { this.Close(); }); //子窗体 Messenger.Default.Send("AddClose"); 阅读全文
posted @ 2023-10-10 15:13 咖啡加点盐 阅读(22) 评论(0) 推荐(0) 编辑
  2023年7月13日
摘要: 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) 编辑