I want to make a series of buttons (like a button bar) that looks like this:
+----------+ +----------+
| (image) | | (image) |
| | | |
| text | | text |
+----------+ +----------+
I have this for the XAML:
<StackPanel Orientation="Horizontal">
<Button Name="btnAddCompany" Width="60" Height="60" Background="Transparent" ToolTip="test" >
<StackPanel Orientation="Vertical">
<Image Source="/Images/LeftArrow25px.png"></Image>
<TextBlock Text="Left" Foreground="AntiqueWhite" HorizontalAlignment="Center" Width="50"/>
</StackPanel>
</Button>
</StackPanel>
When I change the top StackPanel orientation to Horizontal, the image in the middle StackPanel takes over the whole button (it's resized like it's stretched). I've tried forcing the HorizontalAlignment and VerticalAlignment to Center to no avail.
Anyone know what's going on here?