User avatar
stonstad
Topic Author
Posts: 244
Joined: 06 Jun 2016, 18:14
Location: Lesser Magellanic Cloud
Contact:

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

26 Jul 2024, 20:22

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
 
User avatar
sfernandez
Site Admin
Posts: 3093
Joined: 22 Dec 2011, 19:20

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

29 Jul 2024, 18:03

Something wrong is happening with those icons, can you create a ticket with a minimal project that reproduces the issue?

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests