WPF : What event will be triggered after window_loaded
-
Hi,, I want to invoke a method immediately after loading the Window, but I see that Constructor of the window class is called before load event. So how do i call my method once the window is loaded ? even I tried initialized method too. thanks
Either you do your thing in the constructor or after Window is loaded. You need to articulate what you want.
If winter comes is spring far behind? - (PBShelley -Ode to the West Wind)
-
Hi,, I want to invoke a method immediately after loading the Window, but I see that Constructor of the window class is called before load event. So how do i call my method once the window is loaded ? even I tried initialized method too. thanks
Not everything is "ready for use" at one point. Some stuff is ready by the time you get to the constructor, some stuff not til the WindowLoaded event, other stuff is not ready til OnApplyTemplate, etc. You have to be more specific.