摘要: 在xaml对应的后台代码文件的初始化方法中: public ShellView() { InitializeComponent(); #region 启动时串口最大化显示 Rect rc = SystemParameters.WorkArea; //获取工作区大小 this.Left = 0; // 阅读全文
posted @ 2019-03-29 15:28 橘子香气 阅读(1642) 评论(1) 推荐(0) 编辑
摘要: 新建Resource Dictionary文件,取名Style; 将常用的样式写入该文件; 在App.xaml中引用该文件: <Application x:Class="Machine.UI.App" xmlns="http://schemas.microsoft.com/winfx/2006/xa 阅读全文
posted @ 2019-03-29 15:22 橘子香气 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 一、首启窗体设置 1. 创建一个新的WPF应用程序并添加NuGet包:Caliburn.Micro 2. 删除项目自带的主窗口文件MainWindow.xaml 3. 在App.xaml项目文件中,删除StartupUri="MainWindow.xaml"节点特性,并添加ResourceDicti 阅读全文
posted @ 2019-03-29 11:25 橘子香气 阅读(1551) 评论(0) 推荐(1) 编辑