View Issue Details

IDProjectCategoryView StatusLast Update
0002184NoesisGUIC# SDKpublic2021-12-10 14:20
Reporterdarthmaule2 Assigned Tosfernandez  
Status feedbackResolutionopen 
Product Version3.1 
Target Version3.1 
Summary0002184: Rendering offscreen doesn't seem to apply styles exactly the same as rendering to the screen
DescriptionI have these styles...

    <Style x:Key="StandardTextStyle" TargetType="{x:Type TextBlock}">
        <Setter Property="FontSize" Value="20" />
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}" />
        <Setter Property="FontWeight" Value="Regular" />
        <Setter Property="HorizontalAlignment" Value="Center" />
        <Setter Property="VerticalAlignment" Value="Center" />

    <Style x:Key="MeasurementTextStyle" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource StandardTextStyle}">
        <Setter Property="FontSize" Value="28" />

When rendering this XAML to the screen, the FontSize is correct (28)

                            Text="{Binding LetterLabel}"
                            Style="{StaticResource MeasurementTextStyle}"/>
                            Text="{Binding FormattedResultInCurrentUnits}"
                            Style="{StaticResource MeasurementTextStyle}"/>
                            Text="{i18n:TranslateBinding Path=UnitsLabel}"
                            Style="{StaticResource MeasurementTextStyle}"/>

But when rendering offscreen to save as a file, the FontSize is not correct (20)
TagsNo tags attached.




2021-11-11 11:35

manager   ~0007566

Where are those styles defined? In the Application Resources?
If they are part of the one of the application views, and the offscreen rendering is done using other root, then it won't be able to find those styles.

Issue History

Date Modified Username Field Change
2021-11-10 16:11 darthmaule2 New Issue
2021-11-11 11:35 sfernandez Assigned To => sfernandez
2021-11-11 11:35 sfernandez Status new => feedback
2021-11-11 11:35 sfernandez Note Added: 0007566
2021-11-11 11:36 sfernandez Target Version => 3.1.2
2021-12-10 14:20 sfernandez Target Version 3.1.2 => 3.1