2012-07-13 59 views

回答

4

我認爲你正在尋找WindowsStartupLocation

設置WindowStartupLocation手動導致根據其左和Top屬性值進行定位的窗口。如果未指定Left或Top屬性,則其值由Windows確定。

<Window x:Class="WpfAppl.Window1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Title="WindowName" 
    Height="500" Width="500" 
    WindowStartupLocation="Manual" 
    Left="0" Top="0"> 
</Window> 
+0

我認爲你是對的!謝謝! – JMK 2012-07-13 14:24:19

相關問題