6

在 Windows 应用商店应用程序中,我们需要一个在设备方向改变时发生的事件。我发现了两个事件,有人知道它们之间有什么区别吗?

Windows.UI.Core.CoreWindow.GetForCurrentThread().SizeChanged

Windows.UI.Xaml.Window.Current.SizeChanged

4

1 回答 1

1

From msdn :

A Window object is just surfacing information from CoreWindow, which in turn is referencing the window created by the system.

CoreWindow is just an object that provides input events for Window so the two events are referencing the same system event.

于 2013-10-01T06:31:01.553 回答