Bonjour,
j'ai defini la propriété Background de mon TreeView mais aucun effet

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
 
 
  <TreeView Background="{DynamicResource ResourceKey=SuperDegrade02}"
                          >
 
 
 
                    <TreeViewItem  Margin="10" >
                        <TreeViewItem.Header>
                            <StackPanel Orientation="Horizontal">
                                <Image Source="/Images/arrow_up.png" Stretch="Uniform" Margin="3" Height="16"/>
                                <TextBlock Text="GESTION" VerticalAlignment="Center" Margin="5" HorizontalAlignment="Right"
                                   FontSize="14" FontWeight="Bold"/>
                            </StackPanel>
                        </TreeViewItem.Header>
 
                        <StackPanel Orientation="Horizontal">
                            <Image Source="/Images/database.png" Stretch="Uniform" Margin="3" Height="16"/>
                            <TextBlock Name="txtStockage" Text="Stockage" Margin="3" MouseDown="txtStockage_MouseDown"
                                       VerticalAlignment="Center"  HorizontalAlignment="Right"
                                   />
                        </StackPanel>
 
 
 
 
                        <TreeViewItem  Margin="3">
                            <TreeViewItem.Header>
                                <StackPanel Orientation="Horizontal">
                                    <Image Source="/Images/a_profile.png" Stretch="Uniform" Margin="3" Height="16"/>
                                    <TextBlock Text="Personnel" VerticalAlignment="Center" Margin="5" HorizontalAlignment="Right"
                                   />
                                </StackPanel>
                            </TreeViewItem.Header>
 
                            <TextBlock Name="txtCaisse" Text="Caissière" MouseDown="txtCaisse_MouseDown" Margin="3" />
                            <TextBlock Name="txtGestionnaire" Text="Gestionnaire" Margin="3"  MouseDown="txtGestionnaire_MouseDown"/>
                        </TreeViewItem>
 
                        <StackPanel Orientation="Horizontal">
                            <Image Source="/Images/a_saved_data_utility.png" Stretch="Uniform" Margin="3" Height="16"/>
                            <TextBlock Name="txtEtsData" Text="Vos données" Margin="3" MouseDown="txtEtsData_MouseDown"
                                       VerticalAlignment="Center"  HorizontalAlignment="Right"
                                   />
                        </StackPanel>
 
 
                    </TreeViewItem>
 
 
</TreeView>

Si quelqu'un sait comment le faire ,je suis prenant.
Merci.