Valentin V
Valentin V

Reputation: 25789

Find out if WPF windows has been already loaded (Loaded event fired already)

Is it possible to find out whether WPF Window is loaded? I have a method which accepts a window and hooks 'Loaded' event to it. If window is already loaded, the event will not fire. Is it possible to know this when accepting the argument?

Thank you.

Upvotes: 2

Views: 4963

Answers (1)

Tamir
Tamir

Reputation: 2533

You have IsLoaded property of Window

Upvotes: 8

Related Questions