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ロード時に「再表示」するものを持ってFrame1いますPage1.xaml。
MainWindow.xaml
Frame1
Page1.xaml
にボタンをつけていますPage1.xaml。ボタン クリック イベント (Page1) を使用して、ユーザー ビューを(コンテンツ)Page1.xaml & Frame1に戻すにはどうすればよいですか?MainWindow.xaml
Page1.xaml & Frame1
次のように、メイン ページでハンドルを取得できます。
Dim mainPage As MainWindow = TryCast(Application.Current.MainWindow, MainWindow) If mainPage IsNot Nothing The mainPage.frame1.Visibility = Visibility.Collapsed