我能够收到SizeChanged最大化事件:
private void window1_SizeChanged(object sender, SizeChangedEventArgs e)
{
var a = window1.ActualHeight;
var b = window1.ActualWidth;
var c = window1.Height;
var d = window1.Width;
}
Run Code Online (Sandbox Code Playgroud)
这些是window Height和的值Width:
a = 838.4
b = 1550.4
c = 350.4
d = 524.8