wpf ,只能窗口调整高度,并且设定最小值。 MaxWidth="900" WindowStyle="ToolWindow" ResizeMode="CanResize" WindowStartupLocation="CenterScreen" SizeToContent="Height"