DCSIMG
October 2011 - Posts - Shimmy on .NET

October 2011 - Posts

3
Comments

Close window from ViewModel by Shimmy

Although this is somewhat corny, I will dedicate for it a post. Scenario: you want to close a window from the ViewModel, without exposing the Window to it. This can be done in a simple and clean way. (Some code removed for brevity) HTH, Shimmy XAML: < Window x : Name = "this" xmlns : i = "http://schemas.microsoft.com/expression/2010/interactivity" xmlns : ei = "http://schemas.microsoft.com/expression/2010/interactions" > < i : Interaction.Triggers > <...
Powered by Community Server (Commercial Edition), by Telligent Systems