Asp.net WPF应用程序在几周后突然调整了大小
我有一个WPF应用程序,如下所示: 我与一些客户一起安装了它,并且它在几周内运行良好,但在那之后,我收到了投诉,称该应用程序突然重新调整大小,看起来像这样: 窗口标记具有以下属性:Asp.net WPF应用程序在几周后突然调整了大小,asp.net,wpf,resize,Asp.net,Wpf,Resize,我有一个WPF应用程序,如下所示: 我与一些客户一起安装了它,并且它在几周内运行良好,但在那之后,我收到了投诉,称该应用程序突然重新调整大小,看起来像这样: 窗口标记具有以下属性: <Window x:Class="Blabla.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.co
<Window x:Class="Blabla.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StateChanged="Window1_StateChanged" Icon="Ico.ico"
Title="PRAMS Connect" Width="522" SizeToContent="Height" WindowStartupLocation="CenterScreen" ResizeMode="CanMinimize">
如果他们重新安装应用程序,他们的屏幕将恢复正常大小
知道这里发生了什么吗
谢谢大家试着给你的窗户增加一个最小的高度和宽度
<Window x:Class="Blabla.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StateChanged="Window1_StateChanged" Icon="Ico.ico"
Title="PRAMS Connect" Width="522" SizeToContent="Height"
WindowStartupLocation="CenterScreen" ResizeMode="CanMinimize"
MinWidth="522" MinHeight="Whatever the height is...">