CommunityToolkit/WindowsCommunityToolkit

DropShadowPanel streched in a Viewbox

Open

#2311 aperta il 19 lug 2018

Vedi su GitHub
 (17 commenti) (0 reazioni) (0 assegnatari)C# (1403 fork)batch import
bug :bug:controls :control_knobs:help wanted

Metriche repository

Star
 (5708 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Hi Guys,

If I put a DropShadowPanel inside of a Viewbox with Strech="Fill" the DropShadowPanel doesn't work like expected here.

Take a look on my Screenshots for this:

image

image

You can use the following SourceCode to check this:

<Viewbox Stretch="Fill" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="100,100,100,100">
            <Grid>
                <extControls:DropShadowPanel ShadowOpacity="1"
                                  BlurRadius="10"
                                  Color="Black"
                                  x:Name="MyShadow">
                    <Rectangle x:Name="Rect" Fill="Red" Width="100" Height="100" />
                </extControls:DropShadowPanel>
            </Grid>
        </Viewbox>

Best Regards Thilo

Guida contributor