如何在Visual Basic 2012中检测捕获的视图状态? [英] How do I detect a snapped viewstate in Visual Basic 2012?
本文介绍了如何在Visual Basic 2012中检测捕获的视图状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个sub,但是当我将应用移动到捕捉状态时,它不会自动激活。 我该如何更改:
受保护的
Sub onViewStateChanged(eventArgs) < span style ="font-size:small">
结束子
解决方案
你可以关注 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
这篇关于如何在Visual Basic 2012中检测捕获的视图状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文