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 Chris for Aligning controls on both left and right side in a stack panel in WPF

$
0
0

Even though this is old, should someone come across this like I did, here's a simple solution.

Make a new grid and inside that grid put two stack panels with different Horizontal Alignment.

<Grid><StackPanel Orientation="Horizontal" HorizontalAlignment="Left"><!--Code here--></StackPanel><StackPanel Orientation="Horizontal" HorizontalAlignment="Right"><!--Code here--></StackPanel></Grid>

The possible issue is that now without extra handling the two could overlap with each other.


Viewing all articles
Browse latest Browse all 6

Trending Articles



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