0

我有一个窗户。它的属性是:

    <Window x:Class="Student.MainWindow" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        
    Title="MainWindow" Height="996" Width="1191" 
    xmlns:my="clr-namespace:Student"             
    Loaded="Window_Loaded"        
    WindowState="Maximized">

当此窗口在“Windows XP”中运行时,窗口将完全正确地显示。但是如果窗口是在“Windows 7”中打开的,那么窗口的高度就不行了,但是宽度是正常的。高度大于显示器,并且窗口底部未安装在显示器中。我希望该窗口将处于显示状态,并且不会大于“Windows 7”中显示的高度。如何解决?

4

1 回答 1

0

我只是降低了窗户的高度,它有助于我的窗户正确安装:)。

<Window x:Class="Student.MainWindow" 
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        
Title="MainWindow" Height="850" Width="1191" 
xmlns:my="clr-namespace:Student"             
Loaded="Window_Loaded"        
WindowState="Maximized">
于 2012-11-27T12:08:04.040 回答