KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is it possible to make the elements within a WPF toolbar have a HorizontalAlignment of Right? <ToolBar Height="38" VerticalAlignment="Top" Grid.Row="1"> <Button HorizontalAlignment="Left" Width="50" VerticalAlignment="Stretch"/> <Button HorizontalAlignment="Left" Width="50" VerticalAlignment="Stretch"/> <ComboBox Width="120" HorizontalAlignment="Right"/> </ToolBar> I've tried adding the elements inside into a Grid and assigning the ColumnDefinition s to Left/Right as well. I have also tried a StackPanel . No matter what I try I can't seem to get the ComboBox to be "anchored" on the right side of the Toolbar. UPDATE: <DockPanel LastChildFill="True"> Doesn't work, It will not fill the ToolBar element like it would a normal element.
Tags (comma-separated)
Save Edits
Cancel