 <p>PersonView is generated by the DataTemplate for the ItemsControl in CommunityView (CommunityView.xaml:16). </p> <p>DataTemplates automatically assign the DataContext of their visuals to the data that the template is displaying. This is how WPF works.</p> <p>CommunityView gets its DataContext set by inheritence from the Window.</p> <p>The attached command sink property sets the instance CommandSink property on all of the CommandSinkBinding objects contained within the CommandBindings property of the object with the attached property assignment. So in CommunityView.xaml, the CommandSink of all of the CommandSinkBindings in CommunityView (KillAll) are set to the DataContext of the view through binding.</p> <p>The CommandSink property is used to call the Execute and CanExecute functions on the proper target (the ViewModel in this case).</p>