Click here to Skip to main content
15,881,413 members
Articles / Desktop Programming / WPF

How to hook up a ViewModel to a window using an attached property

Rate me:
Please Sign up or sign in to vote.
3.50/5 (2 votes)
22 Nov 2010CPOL 14.2K   2  
Shows you how you can attach a viewmodel to your WPF window using attached properties, rather than setting the DataContext to a static resource or in code-behind

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Norway Norway
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions