TreeListView with transparent background

Grids for WPF Forum

Posted 10 months ago by Olivier
Version: 23.1.2


I want to render a Tree with transparent background (for printing purposes).


TreeListView.Background = System.Windows.Media.Brushes.Transparent;

is ok to have all the cells being transparent.

Want do I have to do, to have the Header part of the Tree transparent ?

Thanks !

Comments (2)

Posted 10 months ago by Actipro Software Support - Cleveland, OH, USA


There isn't a direct property you can set to make the Header transparent.  The TreeListViewColumnHeader control's Background property is currently set via a Setter like:

<Setter Property="Background" Value="{DynamicResource {x:Static themes:AssetResourceKeys.ListHeaderBackgroundNormalBrushKey}}" />

You'd probably need to declare a Transparent Brush in the TreeListView.Resources with the AssetResourceKeys.ListHeaderBackgroundNormalBrushKey key to override our theme's default value for that key.  Then that would hopefully do the trick.

Actipro Software Support

Posted 10 months ago by Olivier

Works tks !

The latest build of this product (v24.1.2) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.