摘要: //将字典 对象 转json /// <summary> /// 类对像转换成json格式 /// </summary> /// <returns></returns> public static string ToJson(object t) { return JsonConvert.Serial 阅读全文
posted @ 2020-10-15 10:35 张汐 阅读(217) 评论(0) 推荐(0)
摘要: /// <summary> /// Zip 压缩文件 /// </summary> public class ZZip { public ZZip() { } #region 加压方法 /// <summary> /// 功能:压缩文件(暂时只压缩文件夹下一级目录中的文件,文件夹及其子级被忽略) / 阅读全文
posted @ 2020-10-15 10:26 张汐 阅读(80) 评论(0) 推荐(0)
摘要: Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\文件夹名\\"; //用户数据和软件相关数据储存。 AppDomain.CurrentDomain.BaseDirectory;//Debug下的路径 阅读全文
posted @ 2020-10-15 10:21 张汐 阅读(62) 评论(0) 推荐(0)
摘要: 字符文本需要右对齐时,可以把TextBlock换成Label,加上HorizontalContentAlignment="Right"属性,因为TextBlock不具备此属性。 阅读全文
posted @ 2020-10-15 09:57 张汐 阅读(771) 评论(0) 推荐(0)
摘要: <ListBox.ItemContainerStyle> <Style TargetType="ListBoxItem"> <EventSetter Event="RequestBringIntoView" Handler="ListBoxItem_RequestBringIntoView"></E 阅读全文
posted @ 2020-10-15 09:52 张汐 阅读(781) 评论(0) 推荐(0)