开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜