WPF Control Background under GridViewColumn
Posted
by sergo_lsn
on Stack Overflow
See other posts from Stack Overflow
or by sergo_lsn
Published on 2010-03-26T15:45:16Z
Indexed on
2010/03/29
6:43 UTC
Read the original article
Hit count: 532
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>
© Stack Overflow or respective owner