Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MainWINdow.xaml.vb 中的一个事件打开 Page1.xaml。我在 Page1 上有一个按钮。如何通过单击 Page1 上的按钮关闭 Page1 以仅关闭 Page1.xaml 而不是主窗口(MainWindow.xaml)?
在 Page1 的 Button_Click 事件中,您只需编写:
Me.Close()
这将仅关闭第 1 页