![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
WPF
吃饭睡觉摸鱼上网
这个作者很懒,什么都没留下…
展开
-
WPF使用小技巧
一.窗体居中设定this.WindowStartupLocation = WindowStartupLocation.CenterScreen; // 可以使当前窗体居中。二.原创 2021-04-23 17:17:32 · 480 阅读 · 0 评论 -
C# 操作xml文件
在WPF中操作xml文件的操作一:读取xml文件// 需要先声明 using System.XmlXmlDocument MyXmlDocument = new XmlDocument();MyXmlDocument.Load(path); // path 为xml文件的路径XmlNode user_obj = MyXmlDocument.SelectSingleNode("root/user");xml文件的结构图:读取操作:string a = user_obj.SelectSi原创 2021-04-23 16:08:43 · 207 阅读 · 0 评论 -
使用WPF MaterialDesignInXamlToolkit-3.2.0挖坑之路
前言因为业务的需求,需要用到WPF写windows桌面应用,所以想到了使用MaterialDesign,因为本人对桌面应用开发不熟悉,所以一直在踩坑,在此记录一下。步骤一:创建新的WPF项目,引用MaterialDesign样式这个根据网上的教程就能完成,但是也遇到一个坑坑1:安装nuget直接下载的MaterialDesignThemes老是下载不成功,我直接到官网下下载下来了,通过导入nuget实现对MaterialDesign样式的使用。步骤二:使用MaterialDesignInXam原创 2021-03-08 14:59:07 · 6196 阅读 · 3 评论