Attached Property port of my Window Close Behavior
Posted
by Reed
on Reed Copsey
See other posts from Reed Copsey
or by Reed
Published on Thu, 15 Apr 2010 21:12:39 +0000
Indexed on
2010/12/06
16:59 UTC
Read the original article
Hit count: 330
Nishant Sivakumar just posted a nice article on The Code Project. It is a port of the MVVM-friendly Blend Behavior I wrote about in a previous article to WPF using Attached Properties.
While similar to the WindowCloseBehavior code I posted on the Expression Code Gallery, Nishant Sivakumar’s version works in WPF without taking a dependency on the Expression Blend SDK.
I highly recommend reading this article: Handling a Window’s Closed and Closing Events in the View-Model. It is a very nice alternative approach to this common problem in MVVM.
© Reed Copsey or respective owner