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

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
luis.rodas
Posts: 11
Joined: Tue Jun 07, 2016 1:33 pm

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

Postby luis.rodas » Tue Jun 30, 2020 6:21 am

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.

Return to “Technical Support”

Who is online

Users browsing this forum: Bing [Bot] and 4 guests

 

 

cron