Start Method automatic in Viewmodel

Topics: Questions
Apr 3, 2014 at 11:54 AM

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 9:00 PM
Initialize is called on the Loaded event. Why is that "too early"?
Apr 4, 2014 at 5: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 9:50 AM
Then use DispatcherService and call BeginInvoke in the Initialize method.