xarzu
xarzu

Reputation: 9499

How to you create a method that is called with the main window come active in a WPF app?

How to you create a method that is called with the main window come active in a WPF app?

Upvotes: 0

Views: 57

Answers (1)

Reed Copsey
Reed Copsey

Reputation: 564931

Just override Window.OnActivated in your main window (or subscribe to the main window's Activated event).

Upvotes: 1

Related Questions