ToolBar with OverflowMode, Never, AsNeeded, Always : ToolBar « Windows Presentation Foundation « VB.Net






ToolBar with OverflowMode, Never, AsNeeded, Always

ToolBar with OverflowMode, Never, AsNeeded, Always
      

<Window x:Class="StackPanelDemo.ToolBar"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="ToolBar" Height="300" Width="300">
    <Grid>

          <ToolBar >
            <Button>1</Button>
            <Button>2</Button>
            <Button>3</Button>
            <Button>4</Button>
            <Button ToolBar.OverflowMode="Never">5</Button>
            <Button ToolBar.OverflowMode="Never">6</Button>
            <Button ToolBar.OverflowMode="AsNeeded">7</Button>
            <Button ToolBar.OverflowMode="Always">8</Button>
          </ToolBar>


  </Grid>
</Window>

   
    
    
    
    
    
  








Related examples in the same category

1.Using Separator with ToolBarUsing Separator with ToolBar
2.Set Command for Button on a ToolBarSet Command for Button on a ToolBar
3.ToolBar and event handlerToolBar and event handler