Closing a Out of Browser application in silverlight from the code

烈酒焚心 提交于 2019-12-23 06:21:57

问题


How do I close an out of the browser application in silverlight programatically. I want to bring in the same functionality as the control box close, from the code based on some condition. How do I acheive it?


回答1:


As simple as that :)

App.Current.MainWindow.Close();


来源:https://stackoverflow.com/questions/8036464/closing-a-out-of-browser-application-in-silverlight-from-the-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!