/ Published in: XML
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<ToolBar> <ToolBar.Resources> <Style TargetType="{x:Type ToolBarPanel}"> <Setter Property="Orientation" Value="Vertical"/> </Style> </ToolBar.Resources> <!-- This is the downside of this solution: You have to set the height at some level (once) or you will end up with controls forcing the toolbar to auto-size until it fills up it's parent --> <DockPanel Height="48"> <Button Name="ButtonOne" Click=ButtonOne_Click" /> <Button Name="ButtonTwo" Click=ButtonTwo_Click" /> <Button Name="ButtonThree" Click="ButtonThree_Click" HorizontalAlignment="Right" /> </DockPanel> </ToolBar>