StackPanel location changes at runtime
Posted
by Vinjamuri
on Stack Overflow
See other posts from Stack Overflow
or by Vinjamuri
Published on 2010-04-29T23:31:11Z
Indexed on
2010/04/29
23:37 UTC
Read the original article
Hit count: 487
wpf-controls
|wpf
I have a ToolBar WPF control which has a Stackpanel docked to right. I use this toolbar control in 3 other WPF controls by adding in the XAML. When I verify in the XAML the Stackpanel location is same for all 3 controls. But when I run my application, for one of the 3 controls, the StackPanel in the ToolBar control shifts to left.
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal" HorizontalAlignment="Right" Name="stackButtons" >
Any idea? Appreciate your help..
© Stack Overflow or respective owner