c# - Prism Unity background view -
i'm trying work unity prism , wpf. i've done far application module in directory , load on demand. works pretty well. can navigate between module using requestnavigate.
but i'm facing problem , can't find documentation on this. have module need continue execution (run in background). example, have voip module , mediaplayer module need continue execution while i'm navigate module. possible use requestnavigate , maybe thread previous view/viewmodel until become current view ?
we can run in separate thread
// subscribe composite presentation events var eventaggregator = servicelocator.current.getinstance<ieventaggregator>(); var navigationcompletedevent = eventaggregator.getevent<navigationcompletedevent>(); navigationcompletedevent.subscribe(onnavigationcompleted, threadoption.uithread);
events can subscribed in separate thread
subscriptiontoken = addedevent.subscribe(addedeventhandler, threadoption.uithread, false, erfilter);
Comments
Post a Comment