Windows 8 development tip: unsnapping your application programmatically
Posted: (EET/GMT+2)
Quick C# programming tip for today. Let's start with the question: how would you unsnap (remove from snapped view) your Windows 8 Store application from its snapped state? Interactively you'd just drag the splitter bar, but how would you do that programmatically?
Luckily, there's a simple API for this: the ApplicationView.TryUnsnap method. This method unsnaps the current application, is possible. You can use the static ApplicationView.GetForCurrentView method to get an instance of the current ApplicationView object.
Happy coding!
Keywords: how to unsnap Windows 8 store app from snapped view with C#; WinRT unsnap; Windows Runtime apps