Answers for "Prism synchronizationContext"

0

Prism synchronizationContext

var dispatcher = System.Windows.Deployment.Current.Dispatcher;
if (dispatcher.CheckAccess())
{
    QuestionnaireView.DataContext = questionnaire;
}
else
{
    dispatcher.BeginInvoke(
        () => { Questionnaire.DataContext = questionnaire; });
}
Posted by: Guest on February-27-2021

Browse Popular Code Answers by Language