Client/Gardener.Client.WPF/MainWindow.xaml.cs
(完整代码) 1KB// -----------------------------------------------------------------------------
// 园丁,是个很简单的管理系统
// gitee:https://gitee.com/hgflydream/Gardener
// issues:https://gitee.com/hgflydream/Gardener/issues
// -----------------------------------------------------------------------------
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Windows;
namespace Gardener.Client.WPF
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow(IServiceCollection services)
{
if (services == null)
throw new ArgumentNullException(nameof(services));
InitializeComponent();
services.AddWpfBlazorWebView();
Resources.Add("services", services.BuildServiceProvider());
// 设置全屏
this.WindowState = WindowState.Normal;
//this.ResizeMode = ResizeMode.NoResize;
//this.WindowStyle = WindowStyle.None;
//this.Topmost = true;
this.Left = 0.0;
this.Top = 0.0;
this.Width = SystemParameters.PrimaryScreenWidth;
this.Height = SystemParameters.PrimaryScreenHeight;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
