I am currently working on a project that is using PRISM 4 + MVVM in a WPF 4 application.
I have been reading up on InteractionRequest
and there seems to be little information on how to implement it so that the dialog is a stylable user control and has textbox
and other controls in it.
All the samples I find are just dialog windows with text in them.
What I am looking to do is have a listview
that when a user selects an item it opens a dialog box where they can edit the details and either save or cancel.
Is this the correct approach with WPF? Should I be doing something other than InteractionRequest
?
I generally do web applications so WPF is a bit new to me.
Any assistance would be greatly appreciated.
Thanks!
i simply use a dialog service for this kind of work.
in your viewmodel you just have to call
var result = this.uiDialogService.ShowDialog("Dialogwindow title goes here, eg Edit Details", detailViewmodel);
thats all :)
EDIT:
you can style your UserControl like you want
<DataTemplate DataType="{x:Type local:DetailViewModel}" >
<view:DetailsView/>
</DataTemplate>