本文介绍了关闭屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
由于看起来Sketchflow中的Screen被定义为用户控件,当你发出按钮点击事件时,你将如何关闭屏幕?
Window.Close( )或Me.Close()不可用。
也不是Application.Shutdown。
我的关闭按钮应用程序屏幕,我想在点击它时结束应用程序。
Jeff Davis
解决方案
Hello Jeff。
对于WPF Sketchflow,你可以做像这样......
private void Button_Click(object sender,System.Windows.RoutedEventArgs e){Application.Current.Shutdown();}它将关闭整个SketchFlow应用程序。
~Christine
As it appears that a Screen in Sketchflow is defined as a usercontrol how would you go about closing the screen when a button click event is raised?
Window.Close() or Me.Close() is not available.
Neither is Application.Shutdown.
I have a close button on my application screen and I want to end the application when it is clicked.
Jeff Davis
解决方案Hello Jeff.
For WPF Sketchflow you could do something like this...
private void Button_Click(object sender, System.Windows.RoutedEventArgs e){ Application.Current.Shutdown();}It will shut down the entire SketchFlow application.
~Christine
更多推荐
关闭屏幕
发布评论