<TreeView Grid.Row="1" Grid.Column="1" ItemsSource="{Binding Path=CatogoryList}" MaxHeight="200"> <TreeView.ItemTemplate> <HierarchicalDataTemplate ItemsSource="{Binding Path=DataItemCollection}"> <CheckBox Content="{Binding Path=Caption}"/> <HierarchicalDataTemplate.ItemTemplate> <DataTemplate> <Grid IsEnabled="{Binding Path=IsChecked, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=CheckBox}}"> <Grid.ColumnDefinitions> <ColumnDefinition SharedSizeGroup="Captions" Width="Auto"/> <ColumnDefinition SharedSizeGroup="Colours" Width="70"/> </Grid.ColumnDefinitions> <CheckBox Grid.Column="0" Content="{Binding Path=Caption}" VerticalAlignment="Center"/> <ig:XamColorPicker Grid.Column="1" SelectedColor="{Binding Path=Color}"/> </Grid> </DataTemplate> </HierarchicalDataTemplate.ItemTemplate> </HierarchicalDataTemplate> </TreeView.ItemTemplate> </TreeView>
TreeViewItem Grid Expander Selection_Border Grid Part_Header CheckBox <---The target Checkbox ItemsHost StackPanel TreeViewItem Grid Selection_Border Grid <--- The grid I wish to bind from
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)