关闭屏幕 [英] Close Screen

查看:100
本文介绍了关闭屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于看起来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


这篇关于关闭屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆