上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 33 下一页
摘要: 一、静态绑定 <Image Source="/Demo;Component/Images/Test.jpg"/> 2、动态绑定 <Grid Grid.Row="1"> <Image Source="{Binding Path=LTEModel.ImgSource,Converter={StaticR 阅读全文
posted @ 2021-09-30 16:26 不溯流光 阅读(1087) 评论(0) 推荐(0) 编辑
摘要: <ListBox Name="lstFileManager" Background ="Transparent" ItemsSource="{Binding}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.Ve 阅读全文
posted @ 2021-09-30 16:22 不溯流光 阅读(1132) 评论(0) 推荐(0) 编辑
摘要: MSDN: 获取或设置一个值,该值指示事件处理程序是否已完整处理事件。 将handled设置为false,说明未处理事件,则会将它发送到操作系统进行默认处理。将handled设置为true,说明事件已处理过,系统不处理了,相当于取消这个触发事件。 阅读全文
posted @ 2021-09-30 10:44 不溯流光 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 一、排序 char[] tmp = str.ToArray();Array.Sort(tmp); //按ASCII排序 二、字节数组转换为ASCII字符串 // 字节数组 byte[] ba = new byte[] { 119,104,97,116,50,49,46,99,111,109 }; / 阅读全文
posted @ 2021-09-27 16:46 不溯流光 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 一、用法 1、排序 //字典按键值升序排序dic = dic.OrderBy(p => p.Key).ToDictionary(p => p.Key, o => o.Value); //字典按键值降序排序 dic = dic.OrderByDescending(p => p.Key).ToDicti 阅读全文
posted @ 2021-09-27 16:44 不溯流光 阅读(504) 评论(0) 推荐(0) 编辑
摘要: 一、ArrayList转换为数组 (1)方法1 ArrayList List = new ArrayList(); Int32[] values = (Int32[])List.ToArray(typeof(Int32)); (2)方法2 ArrayList List = new ArrayList 阅读全文
posted @ 2021-09-27 16:36 不溯流光 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 一、将List复制到另一个List 1、值类型的List List<T> newList = oldList.GetRange(index, count); 或者 List<T> newList = new List<T>(oldList); 2、引用类型的List(深度复制) 利用System.X 阅读全文
posted @ 2021-09-27 16:26 不溯流光 阅读(1113) 评论(0) 推荐(0) 编辑
摘要: 一、ComboBox样式 https://blog.csdn.net/lvguoshan/article/details/49178619 PS:使用过程中发现重写ComboBox样式以后,如果允许手动输入(即不从下拉框中选择),通过Text属性是没办法获取到输入的字符信息的。 二、实现下拉框带图文 阅读全文
posted @ 2021-09-24 09:36 不溯流光 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 一、隐藏边框 <TextBox Text="Hello" Width="480" TextWrapping="Wrap" IsReadOnly="True" BorderBrush="{x:Null}" BorderThickness="0"></TextBox> 关键语句 BorderBrush= 阅读全文
posted @ 2021-09-24 09:28 不溯流光 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 一、持续序列化对象追加到文件的方法 https://www.cnblogs.com/luxishi/p/9172407.html 二、反序列化时程序集名称不同导致错误 折腾了好久终于解决了这个问题,官方yyds https://docs.microsoft.com/zh-cn/dotnet/api/ 阅读全文
posted @ 2021-09-23 17:47 不溯流光 阅读(199) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 33 下一页