Bonsoir a tous,

J'ai binder une ListBox sur une List de class comme ce ci :

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
<ListBox Grid.Column="4" Grid.Row="3" ItemsSource="{Binding Path=ListClients}" Name="ListC">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="50"/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="25"/>
                            <RowDefinition Height="20"/>
                        </Grid.RowDefinitions>
                        <TextBlock VerticalAlignment="Center" Margin="10,0,0,0" Grid.Column="0" Grid.Row="0" FontWeight="bold" Grid.ColumnSpan="2" Text="{Binding UserName}"/>
                        <TextBlock VerticalAlignment="Center" Margin="10,0,0,0" Grid.Column="0" Grid.Row="1" Text="{Binding Right}"/>
                        <TextBlock VerticalAlignment="Center" Grid.Column="1" Grid.Row="1" Text="{Binding Time}" />
                    </Grid>
                 </DataTemplate>
            </ListBox.ItemTemplate>
 
        </ListBox>
Cependant les élément s'affiche seulement lorsque je redimensionne la fenêtre comment faire ?

Merci d'avance.

Cordialement,
NeoKript