More or less the same question like here, but right align: HorizontalAlignment=Stretch, MaxWidth, and Left aligned at the same time?
How do I get this blue text box to grow with the size of the window, have a maximum width of 200 pixels, and be right justified?
This is what I have, but it's centered instead of right aligned. Why?
<DockPanel Background="LightSteelBlue">
<TextBox Margin="3 3 3 3" DockPanel.Dock="Right" MaxWidth="200" />
</DockPanel>