开发者

WPF: Launch ModalDialog control from within XAML?

开发者 https://www.devze.com 2022-12-22 11:16 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号