Bonjour,

Rapidement voici le code:

Code xaml : 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
 
<Style x:Key="TabControlStyle" TargetType="{x:Type TabControl}" >
        <Setter Property="SnapsToDevicePixels" Value="true"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type TabControl}">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <!-- l'entête du TabControl with=28-->
                        <Border Grid.Row="0" 
                                Height="23">
                            <TabPanel IsItemsHost="True" 
                                      Panel.ZIndex="1"
                                      VerticalAlignment="Bottom">
                            </TabPanel>
                        </Border>
                        <!-- le core du TabControl -->
                        <Border Grid.Row="1"
                                CornerRadius="0,6,6,6"
                                BorderThickness="3"
                                BorderBrush="{DynamicResource BlueGradientUp}">
                            <Border BorderBrush="{StaticResource GrayEmbre}"
                                    CornerRadius="0,3,3,3"
                                    BorderThickness="0,0,2,2">    
                                    <ContentPresenter ContentSource="SelectedContent" 
                                                      VerticalAlignment="Stretch"
                                                      HorizontalAlignment="Stretch"/>
                            </Border>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

Code xaml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
<TabControl x:Name="TabControlFornisseurPage"
                            Grid.Row="1"
                            Margin="3" Padding="3"
                            Style="{StaticResource TabControlStyle}">
 
                    <TabItem Header="Liste des fournisseurs">
                        <VsStkF:ucStkMvtFournisseurList x:Name="ucStkMvtFournisseurList"/>
                    </TabItem>
                    <TabItem Header="Informations suplimentaires">
                        <VsStkF:ucStkMvtFournisseurInfo x:Name="ucStkMvtFournisseurInfo"/>
                    </TabItem>
                </TabControl>

  • Mon problème est que le (TabStripPlacement="Bottom") ne fonctionne pas, je n'arrive pas à avoir les tabItems en bas?!

    quelqu'un peut m'expliquer pour quoi ?

    Merci d'avance