Quantcast
Channel: Aligning controls on both left and right side in a stack panel in WPF - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Answer by brunnerh for Aligning controls on both left and right side in a stack panel in WPF

$
0
0

Just do not use a StackPanel, StackPanelsstack. They do, for obvious reasons, not allow alignment in the direction in which they stack. Use a Grid, with column definitions like so:

<Grid.ColumnDefinitions><ColumnDefinition Width="Auto" /><ColumnDefinition Width="*" /><ColumnDefinition Width="Auto" /></Grid.ColumnDefinitions>

Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>