0

I have this Dockpanel:

<DockPanel x:Name="sp_colJournees" Margin="10,110,10,10" Dock="Left" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>

And I try to add some children:

for (int i = 0; i < 7; i++)
{
    var a = new ColJournee(DateTimeConvert.IntToDay((int) _debutCalendar.AddDays(i).DayOfWeek), _debutCalendar.AddDays(i).ToShortDateString());
    sp_colJournees.Children.Add(a);
}

Output:

But I want 7 children with same width.

Shadow The GPT Wizard
  • 66,030
  • 26
  • 140
  • 208
user1740962
  • 111
  • 2
  • 16

1 Answers1

0

You can use a ProportionalPanel for this. Here is an implementation of a proportional panel.

Eirik
  • 4,135
  • 27
  • 29