关闭屏幕

编程入门 行业动态 更新时间:2024-10-26 12:22:53
本文介绍了关闭屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

更多推荐

关闭屏幕

本文发布于:2023-11-27 01:21:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1635988.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:屏幕

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!