DCSIMG
April 2011 - Posts - Essential XAML

April 2011 - Posts

1
Comments

Open Window, Dialog or Message Box from a ViewModel – part 2 by Tomer Shamam

In my previous post I have shown how to open a Window bound to a view-model triggered by the view, using a simple Action. In this post I'll show how to open a Window, triggered by the view-model.   Opening a window directly by the view where the view decides when a Window should be opened, is an incorrect approach since the view shouldn't make that decision. This decision belongs to the Application layer and not the Presentation layer. What if the view shouldn't be opened because...
תגים:, , , , ,
Powered by Community Server (Commercial Edition), by Telligent Systems