摘要: 1 /// <summary> 2 /// 集合分组 3 /// </summary> 4 /// <param name="array">需要分组的集合</param> 5 /// <param name="size">每个分组的大小</param> 6 /// <returns></return 阅读全文
posted @ 2021-03-05 18:58 吃奶嘴的路飞 阅读(79) 评论(0) 推荐(0)
摘要: 1、选中附件,右键生成操作选择 嵌入的资源,例如:handle.exe 2、FileUtil 1 using System.IO; 2 using System.Reflection; 3 4 namespace ResourceOccupancyHelp 5 { 6 public class Fi 阅读全文
posted @ 2021-03-04 16:06 吃奶嘴的路飞 阅读(69) 评论(0) 推荐(0)
摘要: /// <summary> /// 当前是否处于设计模式 /// </summary> bool IsInDesignMode { get { return (bool)DesignerProperties.IsInDesignModeProperty .GetMetadata(typeof(Dep 阅读全文
posted @ 2021-02-24 15:27 吃奶嘴的路飞 阅读(140) 评论(0) 推荐(0)
摘要: 1 <StackPanel Margin="10"> 2 <TextBox Text="默认"></TextBox> 3 <TextBox InputMethod.PreferredImeState="On" InputMethod.PreferredImeConversionMode="Nativ 阅读全文
posted @ 2021-01-22 17:19 吃奶嘴的路飞 阅读(554) 评论(0) 推荐(1)
摘要: 1 #region 三角函数和反三角函数 2 3 using System; 4 using System.Collections.Generic; 5 using System.IO; 6 using System.Linq; 7 using System.Messaging; 8 using S 阅读全文
posted @ 2021-01-08 16:29 吃奶嘴的路飞 阅读(4515) 评论(0) 推荐(1)
摘要: 1 <UserControl x:Class="Zhaoxi.Controls.Loading" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="http://schemas.microso 阅读全文
posted @ 2020-10-23 14:47 吃奶嘴的路飞 阅读(129) 评论(0) 推荐(0)
摘要: 1 <Window x:Class="WpfApp3.MainWindow" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="http://schemas.microsoft.com/win 阅读全文
posted @ 2020-07-23 10:12 吃奶嘴的路飞 阅读(156) 评论(0) 推荐(0)
摘要: 添加右键上下文菜单后,点击后需要获取到源控件 1 private void MenuItem_Click(object sender, RoutedEventArgs e) 2 { 3 if (sender is MenuItem item && 4 item.Parent is ContextMe 阅读全文
posted @ 2020-07-02 16:46 吃奶嘴的路飞 阅读(161) 评论(0) 推荐(0)
摘要: NPOI,给指定的excle创建个下拉框验证 先大致看下效果吧 Nuget 搜索 NPOI,一般出来的第一个就是,安装NPOI基础环境 1 using NPOI.HSSF.UserModel; 2 using NPOI.OpenXmlFormats.Spreadsheet; 3 using NPOI 阅读全文
posted @ 2020-05-09 10:29 吃奶嘴的路飞 阅读(412) 评论(0) 推荐(0)
摘要: 有的时候,给指定的控件,追加一个装饰器Adorner,备注下 比如给某个图片加个工具条等等...都可以采用装饰器的方式来实现,复用性高,易维护,特此备注下 整体效果如下: 1 <Window x:Class="AdornerDemo.MainWindow" 2 xmlns="http://schem 阅读全文
posted @ 2020-05-06 17:04 吃奶嘴的路飞 阅读(171) 评论(0) 推荐(0)