【发布时间】:2011-05-04 14:28:51
【问题描述】:
考虑以下代码:
Window myWindow = new MyWindowSubclass();
myWindow.BringIntoView();
myWindow.Show();
// Code which is effective as pressing the maximize button
另外,如何检测窗口是否确实处于最大化状态。
【问题讨论】:
-
您要定位 Windows.Forms 还是 WPF?你的代码看起来像 WPF,但你的问题有两个标签。
-
@Frédéric:我想以 WPF 为目标。为方便起见,我将删除 winforms。
标签: c# wpf maximize-window