Window.ContentRendered

Window.ContentRenderedは、ウィンドウのXAMLコンテンツがレンダリング完了した後に発生するイベント。

Window.ContentRendered Event (System.Windows) | Microsoft Docs
WPF Windowが最初に表示されたときに処理を行いたい - Qiita

ウィンドウの描画後に処理をしたいなら、こちらの方が有効。

WPFアプリケーション
WPFアプリケーション

WPFアプリケーションで、

Buttonを配置
Buttonを配置

Buttonを配置。

WindowにContentRenderedを追加
WindowにContentRenderedを追加

WindowにContentRenderedを追加。

イベントハンドラ追加
イベントハンドラ追加

イベントハンドラ追加。

Window_ContentRenderedハンドラが追加される
Window_ContentRenderedハンドラが追加される

Window_ContentRenderedハンドラが追加される。

MessageBoxを表示。

今度はButtonが描画されている
今度はButtonが描画されている

今度はButtonが描画されている。

Sample/wpf/Window/ContentRendered/src/Window_ at master · bg1bgst333/Sample · GitHub