Hello,
I'm trying to display a game desk and info panel right next to the game desk and I need to calculate minimal width of the info panel in order to display the game desk properly.
This is my XAML code:
<StackPanel Orientation="Horizontal">
<Rectangle Width="Auto" Height="Auto" Name="gamedeskRect" Style="{DynamicResource GameDesk}" />
<StackPanel Name="infoPanel" Width="Auto" HorizontalAlignment="Right" Height="Auto" VerticalAlignment="Center" Margin="10,0,0,0">
<!-- a few textblocks in a grid here -->
</StackPanel>
</StackPanel>
And the problem is that when I'm resizing the window a part of the right panel may be cropped which is what I don't want.