WPF应用程序转到“关闭"按钮上的上一页 [英] WPF Application Goto previous page on Close Button

查看:80
本文介绍了WPF应用程序转到“关闭"按钮上的上一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以导航"到上一页使用的关闭按钮?尽管它是WPF应用程序,但只有第一个屏幕"是窗口,其余的都是所有页面.

Is it possible to "navigate" on the close button to the previous page used? Although it is a WPF application only the first "screen" is a window the rest is all pages.

推荐答案

Hello Suziem.
哪种类型的WPF应用程序? Windows或Page.
在窗口应用程序中关闭按钮事件上,您可以执行以下操作.
Hello Suziem.
WHich type of WPF application? Windows or Page.
in Window application on close button event you can do something like this.
WindowName win = new WindowName();
win.Show();//Open previouse page
close();//Close current window


尽管它是WPF应用程序,但只有第一个页面"是一个窗口,其余都是所有页面.
Although it is a WPF application only the first "page" is a window the rest is all pages.


这篇关于WPF应用程序转到“关闭"按钮上的上一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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