Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between CoreWindow.GetForCurrentThread().SizeChanged & Window.Current.SizeChanged event

In Windows Store app, we need an event which is occurred when the device orientation is changed. I've found two events, anybody knows what's the difference in between them?

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

Windows.UI.Xaml.Window.Current.SizeChanged

like image 329
Farhan Ghumra Avatar asked Oct 01 '13 05:10

Farhan Ghumra


1 Answers

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.

like image 82
w.b Avatar answered Oct 13 '22 08:10

w.b