Is this a Bug? Adding DropShadow Fixes Layout in WorldSpaceUI Instance
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
With Drop Shadow
Without Drop Shadow
XAML
Code: Select all
<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>
Without Drop Shadow
-
sfernandez
Site Admin
- Posts: 3093
- Joined:
Re: Is this a Bug? Adding DropShadow Fixes Layout in WorldSpaceUI Instance
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