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 instead.
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


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


<Grid Background="Red">
<ColumnDefinition Width="*" />
<RowDefinition Height="*" />
<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"/>

Is it possible fix it to the next release ?

Best Regards,
Luis F.

Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 6 guests