How to bind to parent DataTemplate from within an ItemsControl.ItemTemplate
问题 I have a container type control which contains a number of items. The container control has a DataTemplate defined which also contains a ItemsControl with a DataTemplate for the item. The items however need to bind to something from the container control. A simplified example is given below: <DataTemplate DataType="{x:Type ContainerType}"> <!-- Display of the container stuff--> <ItemsControl ItemsSource="{Binding Items, Mode=OneWay}"> <ItemsControl.ItemTemplate> <DataTemplate DataType="{x