Page 1 of 1

Viewbox (Uniform) with Vertical and Horizontal "Center"alignment issue (v2.0 - 088)

Posted: Tue Jun 30, 2020 6:21 am
by luis.rodas
Hi,

"Viewbox" with "Stretch=Uniform", "VerticalAlignment=Center" and "HorizontalAlignment=Center" does not work. The control is not displayed.

Sample:

<Grid Background="Red">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Viewbox Stretch="Uniform" VerticalAlignment="Center" HorizontalAlignment="Center">
<Canvas Background="#00FFFFFF" Width="115" Height="107">
<Rectangle Fill="#FF0000FF" Stroke="#FF000000" Width="87" Height="67" Canvas.Left="0" Canvas.Top="0"/>
<Rectangle Fill="#FF0000FF" Stroke="#FF000000" Width="87" Height="67" Canvas.Left="28" Canvas.Top="40"/>
</Canvas>
</Viewbox>
</Grid>

Is it possible fix it to the next release ?

Best Regards,
Luis F.