I have the following:
<DockPanel Height="25" HorizontalAlignment="Stretch">
<Button Content="Add" x:Name="bAdd" DockPanel.Dock="Left" />
<Button Content="Remove" x:Name="bRemove" DockPanel.Dock="Right" />
</DockPanel>
Can someone suggest me how to make both the buttons have equal width without setting the Width property of the buttons manually?
If you absolutely don’t want to set the
Widthpropety, you can just use aGrid:They will both have the same
Widththis way