Change element inside Template
问题 I want to reuse the the ItemsControl from my ListView and its not really hard to put the ItemsControle into an Template. The problem is, I want to change the DataTemplate when I use my ItemsControlTemplate. <ListView DataContext="{Binding Input}"> <ItemsControl ItemsSource="{Binding Columns}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal"/> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemTemplate> <DataTemplate> <Grid> <Grid