XAML: Binding a property in a DataTemplate
问题 I'm fairly new to XAML but enjoying learning it. The thing I'm really struggling with is binding a property to an element in a DataTemplate . I have created a simple WPF example to, (hopefully,) explain my problem. I this example I am trying to bind the Visibility property of a CheckBox in a DataTemplate to a Property in my viewmodel. (Using this scenario purely for learning/demo.) I have a simple DataModel named Item , but is of little relevance in this example. class Item :