How do I set the Style for ListViewSubItem?

  • Thread starter Thread starter Tom P.
  • Start date Start date
T

Tom P.

Is there a way to set a Style for a ListViewSubItem?

I want the subitems in my ListView to be visually different from each
other. Is there a way to set a Style for the subitems? Or maybe a
DataTemplate for the ListViewItem?

I appreciate any inout, thanks.
Tom P.
 
Is there a way to set a Style for a ListViewSubItem?

I want the subitems in my ListView to be visually different from each
other. Is there a way to set a Style for the subitems? Or maybe a
DataTemplate for the ListViewItem?

I appreciate any inout, thanks.
Tom P.

I suppose I should mention I'm talking about WPF and XAML.

Sorry.
 
I suppose I should mention I'm talking about WPF and XAML.

Sorry.

OK, I hate to do this but I figured out how to use CellTemplates.

One thing I cannot get is - I am using a LinearGradient to fill the
background of the ColumnItem but the gradient is only behind the text,
I want it to fill the entire cell for the width of the column.

I've tried using ListBoxes and DataTemplates - No luck. I've tried
using ListViews and CellTemplates - No luck. I can't think of a way to
specify the width is full column width.

Thanks for the help,
Tom P.
 
Back
Top