Simulation d'un anchor en WPF
Bonjour tout le monde,
je viens vous voir car j'ai un petit problème que je n'arrive pas à résoudre.
Je possède une fenêtre avec une grid avec 2 lignes, séparées par un gridSplitter. A l'intérieur de la première colonne, j'ai insérer une RichTextBox. Quand je redimensionne la première colonne, j'aimerai que la richtextbox se s'élargisse ou se rétrécisse. Or je n'y arrive pas :? .
Voilà mon code XAML :
Code:
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
|
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="74*" MinHeight="30" />
<RowDefinition Height="78*" />
<RowDefinition Height="110*" />
</Grid.RowDefinitions>
<DockPanel Grid.Row="0" Name="DockPanel1" MinHeight="29">
</DockPanel>
<DockPanel Grid.Row="1" Name="DockPanel2">
<RichTextBox Height="67" Name="RichTextBox1" Width="165" VerticalAlignment="Bottom" />
</DockPanel>
<GridSplitter
Grid.Row="0"
Background="White"
Name="GridSplitter1" HorizontalAlignment="Stretch"
Height="5"
VerticalAlignment="Bottom" />
</Grid> |
Je vous remercie grandement pour votre aide et j'imagine que cela doit être un truc tout bête ^^
Cordialement
Finality