WPF: Launch ModalDialog control from within XAML?
I'm building WPF client application. I'm following MVC pattern.
The project solution has many items, so I created „Views“ and „Controllers“ separate assemblies. „Views“ assembly references „Con开发者_如何学编程trollers“.
Problem: I need to load ShowModalDialog user control from withing controller instance which has no reference to View dialog control.
Is there a way to launch ModalDialog control from within XAML ?
AlbertasA
I ran into that same problem a while ago and there wasn't a built-in solution. This is a workaround I used: http://www.codeproject.com/KB/WPF/XAMLDialog.aspx
精彩评论