prism-2

WPF and Prism View Overlay

坚强是说给别人听的谎言 提交于 2019-12-20 10:00:44
问题 I need some help with overlaying views using the prism framework.Its a little more complexed than that so let me explain.I could be over-thinking this as well :D i have shell (wpf window) and i have 2 views(A & B - both usercontrols) in a module. when the shell loads it loads view A. On view A i have a button to "popup" view B for some user input. so naturally i would think to some sort of modal window/control, maybe even a popup. however the problem i face with the popup is that when i move

WPF and Prism View Overlay

做~自己de王妃 提交于 2019-12-02 21:02:30
I need some help with overlaying views using the prism framework.Its a little more complexed than that so let me explain.I could be over-thinking this as well :D i have shell (wpf window) and i have 2 views(A & B - both usercontrols) in a module. when the shell loads it loads view A. On view A i have a button to "popup" view B for some user input. so naturally i would think to some sort of modal window/control, maybe even a popup. however the problem i face with the popup is that when i move the shell the popup remains fixed and it doesnt block events in view A. I've tried disabling view A to

WPF MVVM dialog example

天大地大妈咪最大 提交于 2019-11-27 17:01:48
Does anyone have any examples of showing a window dialog using MVVM (Prism)? - for example a configuration settings window when a command is executed. All of the examples I've seen use the mediator pattern which is fine, but they also all have a reference to the view in the view model which is not ideal (we're using DataTemplates) Thanks Cameron MacFarland I would use a service to display the dialog. The service can then also link views with viewmodels. public interface IDialogService { void RegisterView<TView, TViewModel>() where TViewModel:IDialogViewModel; bool? ShowDialog(IDialogViewModel

WPF MVVM dialog example

左心房为你撑大大i 提交于 2019-11-26 18:49:39
问题 Does anyone have any examples of showing a window dialog using MVVM (Prism)? - for example a configuration settings window when a command is executed. All of the examples I've seen use the mediator pattern which is fine, but they also all have a reference to the view in the view model which is not ideal (we're using DataTemplates) Thanks 回答1: I would use a service to display the dialog. The service can then also link views with viewmodels. public interface IDialogService { void RegisterView