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.xaml だけを閉じ、メイン ウィンドウ (MainWindow.xaml) ではなく、Page1 を閉じるにはどうすればよいですか?
Page1 の Button_Click イベントで、次のように記述します。
Me.Close()
これにより、ページ1のみが閉じられます