WPF Control Background under GridViewColumn
- by sergo_lsn
Hi,
I'd like make background for colums like in this image http://www.freeimagehosting.net/image.php?e2435df982.png
I have CheckBoxes on the left and TreeView on the right. In one column I have checkboxes in other I have treeview. In column with checkboxes I need set background. Background has to be permanent.
....
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn Width="25"> All column has to have background not only cell
<GridViewColumn.CellTemplate>
<DataTemplate>
<CheckBox>
<CheckBox.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
....
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</CheckBox.Resources>
</CheckBox>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</GridViewColumn>
<GridViewColumn Width="300"/>
</TreeListView.Columns>
<TreeListView.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
... TreeView.xaml
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</TreeListView.Resources>
<TreeListView.ItemTemplate>
<HierarchicalDataTemplate>
<HierarchicalDataTemplate.ItemsSource>
....
</HierarchicalDataTemplate.ItemsSource>
</HierarchicalDataTemplate>
</TreeListView.ItemTemplate>
</TreeListView>