🔀 禁用窗口最大化
This commit is contained in:
@@ -50,6 +50,8 @@ namespace GeekDesk
|
||||
public static int colorPickerHotKeyId = -1;
|
||||
public static MainWindow mainWindow;
|
||||
|
||||
|
||||
|
||||
private static bool dataFileExist = true;
|
||||
public MainWindow()
|
||||
{
|
||||
@@ -57,6 +59,7 @@ namespace GeekDesk
|
||||
//加载数据
|
||||
LoadData();
|
||||
InitializeComponent();
|
||||
|
||||
//用于其他类访问
|
||||
mainWindow = this;
|
||||
|
||||
@@ -72,10 +75,13 @@ namespace GeekDesk
|
||||
|
||||
}
|
||||
|
||||
private void Window_SourceInitialized(object sender, EventArgs e)
|
||||
{
|
||||
//禁用窗口最大化
|
||||
WindowUtil.DisableMaxWindow(this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 搜索快捷键按下
|
||||
|
||||
Reference in New Issue
Block a user