Issue in showing flyout in ContentDialog in 1903 and 1909

guess_me_if_u_can 126 Reputation points
2020-04-24T08:14:16.527+00:00

CalenderDatePicker control is working fine in ContentDialog. but when i show a flyout control in a content dialog, it shows ContentDialog shadow in flyout region

7610-microsoftissue.png

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Richard Zhang-MSFT 6,936 Reputation points
    2020-04-27T04:08:20.843+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    Hello, this is a problem caused by Shadow. If your minimum target version is 1903 or higher, you could use the following code to turn off the default shadow:

    <Button.Flyout>
        <Flyout>
            <Flyout.FlyoutPresenterStyle>
                <Style TargetType="FlyoutPresenter">
                    <Setter Property="IsDefaultShadowEnabled" Value="False"/>
                </Style>
            </Flyout.FlyoutPresenterStyle>
            <Grid Width="400" Height="50" Background="Red"/>
        </Flyout>
    </Button.Flyout>
    

    Thanks.