Page 1 of 1

Is this a Bug? Adding DropShadow Fixes Layout in WorldSpaceUI Instance

Posted: 26 Jul 2024, 20:22
by stonstad
I am drawing a UserControl within a NoesisWorldSpaceUI instance. My rendering looks fine as long as I have a drop shadow effect applied to a top-level element. Without a drop shadow it looks like a scaling or resolution issue occurs. What might cause this behavior? Is it a bug?

XAML
<Viewbox>
    <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical" Effect="{StaticResource UIDropShadow}">
        <local:SCMinimalSVGButton x:Name="_SVGButton" Width="40" Height="40" Margin="0, 0, 0, 0" Visibility="Collapsed"/>
        <Grid x:Name="_Header" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">
            <Rectangle Fill="{StaticResource DefaultUI.Brush.Bottom.Gradient}" Stroke="Transparent" StrokeThickness="1" RadiusX="1" RadiusY="1"/>
            <TextBlock x:Name="_TitleTextBlock" Style="{StaticResource Heading4Primary}" FontSize="7" HorizontalAlignment="Center" Margin="2,1,2,1"/>
        </Grid>
        <StackPanel x:Name="_ItemsStackPanel" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0, 0, 0, 0" Visibility="Collapsed"/>
    </StackPanel>
</Viewbox>
With Drop Shadow
Image

Without Drop Shadow
Image

Re: Is this a Bug? Adding DropShadow Fixes Layout in WorldSpaceUI Instance

Posted: 29 Jul 2024, 18:03
by sfernandez
Something wrong is happening with those icons, can you create a ticket with a minimal project that reproduces the issue?