摘要: 想做成选择颜色后,更换窗体主题颜色 1、在App.xaml中记录当前颜色 <Application.Resources> <SolidColorBrush x:Key="color1" Color="White"></SolidColorBrush> </Application.Resources> 阅读全文
posted @ 2022-11-22 01:16 户的博客 阅读(2099) 评论(0) 推荐(0) 编辑
摘要: 数据源list,设置ListBoxItem实现 <Page.Resources> <Style TargetType="ListBoxItem"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Lis 阅读全文
posted @ 2022-11-22 01:15 户的博客 阅读(305) 评论(0) 推荐(0) 编辑
摘要: JsonConvert.SerializeObject(list); 这样转换时,发现结果为[{},{},{},{},{}],因为list对象和对象属性访问级别设为了internal,修改为public后正常 阅读全文
posted @ 2022-11-06 13:00 户的博客 阅读(456) 评论(0) 推荐(0) 编辑
摘要: MessageBoxResult dr = MessageBox.Show("xxx", "提示", MessageBoxButton.OKCancel, MessageBoxImage.Question);//确定 取消 dr = MessageBox.Show("xxx", "提示", Mess 阅读全文
posted @ 2022-10-27 16:15 户的博客 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 转载:https://blog.csdn.net/Ranger_AA/article/details/106478773 马卡龙草莓奶霜#f1707d 马卡龙玫瑰粉红#f155369 马卡龙基尔Anperiaru#ef5767 大巧克力杏仁饼#ae716e 巧克力马卡龙#cb8e85 杏仁饼,果仁糖 阅读全文
posted @ 2022-10-27 12:24 户的博客 阅读(6493) 评论(0) 推荐(0) 编辑
摘要: 转载:https://www.cnblogs.com/benon94/p/14381794.html 删除代码块:F12 选定代码块 删除 阅读全文
posted @ 2022-10-25 14:02 户的博客 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 转载:https://www.cnblogs.com/eliauk-L/p/16185682.html 1.定义枚举类型 public enum Test { 男 = 0, 女 = 1 } public enum Test { 男, 女 } 2.获取枚举值ublic void EnumsAction 阅读全文
posted @ 2022-10-25 11:35 户的博客 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 下载了wpf示例代码,打开重新生成错误如上,点击NETSDK后描述如下,修改global.json中sdk版本后重新生成成功。 (地址:https://learn.microsoft.com/zh-cn/dotnet/core/tools/sdk-errors/netsdk1141?f1url=%3 阅读全文
posted @ 2022-10-24 11:06 户的博客 阅读(464) 评论(0) 推荐(0) 编辑
摘要: 转载 版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。 本文链接:https://blog.csdn.net/daqiang012/article/details/82385720 错误信息: 出现身份验证错误,要求的函数不受支持。。。 解决办 阅读全文
posted @ 2020-12-30 11:47 户的博客 阅读(549) 评论(0) 推荐(0) 编辑
摘要: .net framework的web程序,直接访问了某个页面,报这个错,因为没有登录,到登录页面登录后再访问正常了 阅读全文
posted @ 2020-12-25 09:32 户的博客 阅读(251) 评论(0) 推荐(0) 编辑