-4
Je souhaite créer une table en utilisant ListView
.Arrière-plan transparent pour WPF Listview Header
L'arrière-plan du en-tête de table doit être transparent.
Comment y parvenir?
Je souhaite créer une table en utilisant ListView
.Arrière-plan transparent pour WPF Listview Header
L'arrière-plan du en-tête de table doit être transparent.
Comment y parvenir?
Réglez le Background
du ListView
-Transparent
et définir un style GridViewColumnHeader
qui définit son Background
-Transparent
:
<ListView ...
Background="Transparent">
<ListView.Resources>
<Style TargetType="GridViewColumnHeader">
<Setter Property="Background" Value="Transparent" />
</Style>
</ListView.Resources>
<ListView.View>
<GridView>
<GridViewColumn .../>
</GridView>
</ListView.View>
</ListView>
Faites votre propre modèle pour le ListView en modifiant celui existant ici: https: // docs. microsoft.com/fr-fr/dotnet/framework/wpf/controls/listview-styles-and-templates –
Merci de ne pas demander à vos amis de remettre en cause vos mauvaises questions. – musefan
Veuillez poster un code que vous avez fait. –