65.9K
CodeProject is changing. Read more.
Home

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

starIconstarIconstarIcon
emptyStarIcon
starIcon
emptyStarIcon

3.50/5 (2 votes)

Nov 22, 2010

CPOL
viewsIcon

15768

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