Align items in a stack panel?
You can achieve this with a DockPanel: <DockPanel Width=”300″> <TextBlock>Left</TextBlock> <Button HorizontalAlignment=”Right”>Right</Button> </DockPanel> The difference is that a StackPanel will arrange child elements into single line (either vertical or horizontally) whereas a DockPanel defines an area where you can arrange child elements either horizontally or vertically, relative to each other (the Dock property changes the … Read more