What is the difference between CoreWindow.GetForCurrentThread (). SizeChanged & Window.Current.SizeChanged Event

In the Windows Store application, we need an event that occurs when the device orientation changes. I found two events, does anyone know what is the difference between them?

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

Windows.UI.Xaml.Window.Current.SizeChanged

+6
source share
1 answer

From msdn :

A Window object is simply surface information from CoreWindow, which in turn refers to a window created by the system.

CoreWindow is just an object that provides input events for Window , so two events refer to the same system event.

+1
source

Source: https://habr.com/ru/post/954989/


All Articles