| |
24.49.10.ToolBar and Button, ToggleButton, ComboBox and Separator |
|
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Title="About WPF" SizeToContent="WidthAndHeight"
Background="OrangeRed">
<Canvas>
<ToolBar>
<Button>
<Image Source="c:\image.gif"/>
</Button>
<Separator/>
<ToggleButton>
<Image Source="c:\image.gif"/>
</ToggleButton>
<ToggleButton>
<Image Source="c:\image.gif"/>
</ToggleButton>
<ToggleButton>
<Image Source="c:\image.gif"/>
</ToggleButton>
<Separator/>
<ToggleButton>
<Image Source="c:\image.gif"/>
</ToggleButton>
<ToggleButton>
<Image Source="c:\image.gif"/>
</ToggleButton>
<ToggleButton>
<Image Source="c:\image.gif"/>
</ToggleButton>
<Separator/>
<Label>Zoom</Label>
<ComboBox SelectedIndex="0">
<ComboBoxItem>100%</ComboBoxItem>
<ComboBoxItem>75%</ComboBoxItem>
<ComboBoxItem>50%</ComboBoxItem>
<ComboBoxItem>25%</ComboBoxItem>
</ComboBox>
<Separator/>
<Button>
<Image Source="c:\image.gif"/>
</Button>
<Button>
<Image Source="c:\image.gif"/>
</Button>
</ToolBar>
</Canvas>
</Window>
|
|
|
|