0

I'm struggling with using the dispatcher with caliburn.micro in wpf. My codes in xaml.cs goes like this.

Dispatcher.BeginInvoke(DispatcherPriority.ContextIdle, new Action(() =>
             {
                //function here.

             }));

Is there any way I can use the dispatcher in my viewmodel or any equivalent for caliburn.micro? Any help would be appreciated.

  • Why would you need that. You should update your viewModel's properties and use `NotifyOfPropertyChange();` – FCin Dec 01 '17 at 06:09
  • 1
    You can access the main UI thread's Dispatcher by `Application.Current.Dispatcher`. – Clemens Dec 01 '17 at 06:55

0 Answers0