0
我在ToolBarTray中有兩個ToolBars。儘管它們可以放在一行中,但我希望將每個ToolBar放在新行中。 我該怎麼做?ToolBarTray中新行的工具欄
<ToolBarTray VerticalAlignment="Top" Margin="0,20,70,0" Height="65">
<ToolBar Height="30" VerticalAlignment="Top" Background="LightGray" >
<Label>Name :</Label>
<TextBox Width="120"></TextBox>
<ComboBox Width="120" Margin="5,0,0,0">
<ComboBoxItem>Item 1</ComboBoxItem>
<ComboBoxItem>Item 2</ComboBoxItem>
<ComboBoxItem>Item 3</ComboBoxItem>
</ComboBox>
<Button Height="25" Width="80" Background="White" Margin="5,0,0,0">Search</Button>
<Label>This is a first ToolBar</Label>
<Button Height="25" Width="80" Background="White" Margin="5,0,0,0" ToolBar.OverflowMode="Always">Look for ..</Button>
</ToolBar>
<ToolBar Height="30" VerticalAlignment="Top" Background="LightGray">
<Label>Name :</Label>
<TextBox Width="120"></TextBox>
<ComboBox Width="120" Margin="5,0,0,0">
<ComboBoxItem>Item 1</ComboBoxItem>
<ComboBoxItem>Item 2</ComboBoxItem>
<ComboBoxItem>Item 3</ComboBoxItem>
</ComboBox>
</ToolBar>
</ToolBarTray>