CommunityToolkit/WindowsCommunityToolkit

DropShadowPanel streched in a Viewbox

Open

#2,311 创建于 2018年7月19日

在 GitHub 查看
 (17 评论) (0 反应) (0 负责人)C# (1,403 fork)batch import
bug :bug:controls :control_knobs:help wanted

仓库指标

Star
 (5,708 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

贡献者指南