<Window x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="460" Width="600">
<Grid>
<ToolBarTray Name="ToolBarTray1"
HorizontalAlignment="Stretch"
VerticalAlignment="Top"
IsLocked="True"
FlowDirection="LeftToRight"
Height="20">
<ToolBar Name="ToolBar1"
VerticalAlignment="Stretch"
Band="1" BandIndex="1"
ClipToBounds="False">
<Button Name="tbrClear" ToolTip="Clear">
<Image Source="file:///C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\VS2010ImageLibrary\1033\VS2010ImageLibrary\Actions\png_format\Office and VS\NewDocumentHS.png"></Image>
</Button>
<Separator Padding="1"/>
<Button Name="tbrRed" ToolTip="Red">
<Image Source="file:///C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\VS2010ImageLibrary\1033\VS2010ImageLibrary\Actions\png_format\Office and VS\Color_fontHS.png"></Image>
</Button>
<Button Name="tbrBlue" ToolTip="Blue">
<Image Source="file:///C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\VS2010ImageLibrary\1033\VS2010ImageLibrary\Actions\png_format\Office and VS\Color_linecolor.png"></Image>
</Button>
<Separator/>
<Button Name="tbrUpperCase" ToolTip="Upper Case">
<Image Source="file:///C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\VS2010ImageLibrary\1033\VS2010ImageLibrary\Actions\png_format\Office and VS/FillupHS.png"></Image>
</Button>
<Button Name="tbrLowerCase" ToolTip="Lower Case">
<Image Source="file:///C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\VS2010ImageLibrary\1033\VS2010ImageLibrary\Actions\png_format\Office and VS/FillDownHS.png"></Image>
</Button>
<Separator/>
<Button Name="tbrHelpAbout" ToolTip="About">
<Image Source="file:///C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\VS2010ImageLibrary\1033\VS2010ImageLibrary\Actions\png_format\Office and VS/help.png"
OpacityMask="{x:Null}"></Image>
</Button>
</ToolBar>
</ToolBarTray>
<StatusBar Height="23"
HorizontalAlignment="Left"
Margin="0,398,0,0"
Name="statusbar"
VerticalAlignment="Bottom"
Width="578" >
<StatusBarItem Content="Ready"
Name="sbiStatus" />
</StatusBar>
<TextBox Height="23"
HorizontalAlignment="Left"
Margin="275,100,0,0"
Name="TextBox1"
VerticalAlignment="Top"
Width="120" />
</Grid>
</Window>
I've set the toolbartray to Height=20, I thought the toolbar itself will follow the height but it isn't. any ideas? To make the toolbar height "follow" or "stretch" to the toolbartray height? For now the icons are truncated at the bottom.

New Topic/Question
Reply



MultiQuote


|