vbcode关闭/结束/退出应用程序???在网络模式下 [英] vbcode to close/end/exit Application ??? in web mode
本文介绍了vbcode关闭/结束/退出应用程序???在网络模式下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
vbcode关闭/结束/退出应用程序???在Web模式下
vbcode to close/end/exit Application ??? in web mode
推荐答案
从应用程序中关闭应用程序不会直接在LightSwitch中显示。但由于客户端是在Web模式下托管在网页中的Silverlight应用程序,因此您可以执行以下操作:
Closing the application from within the application is not surfaced directly in LightSwitch. But since the client is a Silverlight application that is hosted in a webpage when in Web mode, then you can do the following:
Microsoft.LightSwitch.Threading.Dispatchers.Main.BeginInvoke(
Sub()
System.Windows.Browser.HtmlPage.Window.Invoke("close")
End Sub)
这篇关于vbcode关闭/结束/退出应用程序???在网络模式下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文