WPF – How do I get the MainWindow instance? January 3, 2024 by Tarik You can access your field with Application.Current.MainWindow._frameCounter