1
在Windows窗體,你有StartPosition
屬性,它允許你指定當啓動您的表格將被放置在屏幕上的位置。什麼是Windows窗體的``StartPosition`屬性的WPF等價物?
確實WPF具有等同的,如果是什麼呢?
感謝
在Windows窗體,你有StartPosition
屬性,它允許你指定當啓動您的表格將被放置在屏幕上的位置。什麼是Windows窗體的``StartPosition`屬性的WPF等價物?
確實WPF具有等同的,如果是什麼呢?
感謝
我認爲你正在尋找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>
我認爲你是對的!謝謝! – JMK 2012-07-13 14:24:19
http://stackoverflow.com/a/1545278/67505 – 2012-07-13 14:15:37