WPF MainWindowの取得

一番上位の親であるメインウインドウを取得する

MainWindow mainWindow = (MainWindow)Application.Current.MainWindow;
;

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

This site uses Akismet to reduce spam. Learn how your comment data is processed.