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); 

view-switching-applications-with-prism

prism app

prism-wpf-standalone-and-interaction-modules


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -