且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Visual Basic 2012中检测捕获的视图状态?

更新时间:2022-10-25 15:00:37

你可以关注  Window.SizeChanged  您可以从中识别应用程序的当前ViewState。请在此处查看示例
:  http://code.msdn.microsoft的.com / windowsapps /管理单元采样2ff037ae

I created a sub but it is not automatically activated when I move the app into a snapped state.  How should I change this:

Protected Sub onViewStateChanged(eventArgs)

End Sub

You can watch for the Window.SizeChanged from which you can identify the application's present ViewState. Please take a look at the sample here: http://code.msdn.microsoft.com/windowsapps/Snap-sample-2ff037ae