上一页 1 2 3 4 5 6 ··· 13 下一页
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 接口和抽象类 { class Program { 阅读全文
posted @ 2020-10-23 15:07 荼离伤花 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Diagnostics.Tracing; 4 using System.Linq; 5 using System.Text; 6 using System.Threa 阅读全文
posted @ 2020-10-22 13:21 荼离伤花 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 一,模板方法 using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace JSONTest { class Progra 阅读全文
posted @ 2020-10-21 16:17 荼离伤花 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 背景: 在我们退出软件时常常需要记录当前的一个状态,而不是在打开软件是加载默认值,所以需要将当前软件的一些属性值或者对象保存下来,保存方式有多种,之前写过一个通过将对象保存成二进制文件的方法,可以参考: https://www.cnblogs.com/sclu/p/13689755.html 现在要 阅读全文
posted @ 2020-10-19 11:38 荼离伤花 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 保存对象到本地 IFormatter formatter = new BinaryFormatter(); Stream stream = new FileStream(@"ModelsData.bin", FileMode.OpenOrCreate, FileAccess.Write, FileS 阅读全文
posted @ 2020-09-18 10:23 荼离伤花 阅读(906) 评论(0) 推荐(0) 编辑
摘要: 一。Wpf在创建listview时没有直接修改item字体大小的方法,只能设置标题的字体大小。 <!-- 这里设置的fontsize只是标题的字体大小--> <ListView x:Name="Defect_list" Background="#FF1D1D1C" ItemsSource="{Bin 阅读全文
posted @ 2020-09-17 15:43 荼离伤花 阅读(3157) 评论(0) 推荐(0) 编辑
摘要: 一。新建一个自定义IndexConverter类,实现接口IValueConverter。 public class IndexConverter : IValueConverter { public object Convert(object value, Type targetType, obj 阅读全文
posted @ 2020-09-17 10:07 荼离伤花 阅读(1644) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/zeng292390450/article/details/52231152 阅读全文
posted @ 2020-09-11 16:58 荼离伤花 阅读(680) 评论(0) 推荐(0) 编辑
摘要: ###1.Xaml部分 <Grid> <ListBox Name="lbMain" ItemsSource="{Binding CollectionModelFile}"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Height="30" O 阅读全文
posted @ 2020-09-03 10:17 荼离伤花 阅读(1253) 评论(0) 推荐(0) 编辑
摘要: 1.在Winform项目中添加Wpf控件的引用。可以引用dll文件,也可以引用wpf 用户控件原项目。 2.在Winform窗口中添加ElementHost控件,并给ElementHost控件设置name,elementHost1 3.在Form构造函数中实例化WPF用户控件,并添加到Element 阅读全文
posted @ 2020-09-02 18:05 荼离伤花 阅读(699) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 13 下一页