Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Prism synchronizationContext

var dispatcher = System.Windows.Deployment.Current.Dispatcher;
if (dispatcher.CheckAccess())
{
    QuestionnaireView.DataContext = questionnaire;
}
else
{
    dispatcher.BeginInvoke(
        () => { Questionnaire.DataContext = questionnaire; });
}
Source by prismlibrary.com #
 
PREVIOUS NEXT
Tagged: #Prism #synchronizationContext
ADD COMMENT
Topic
Name
5+4 =