Start Method automatic in Viewmodel

Topics: Questions
Apr 3, 2014 at 12:54 PM
Hello

How is it possible to call a method in viewmodel when the view its displayed.
  • Contructor of viewmodel to early. The view is not displayed
  • Initialize also to early
  • OnInitialized -> is called bevor Initialize !?
Apr 3, 2014 at 10:00 PM
Initialize is called on the Loaded event. Why is that "too early"?
Apr 4, 2014 at 6:26 AM
Because first the Initialize method is called and after the view is displayed.
I want' first display the view and after call my method.
Apr 5, 2014 at 10:50 AM
Then use DispatcherService and call BeginInvoke in the Initialize method.