Issue in showing flyout in ContentDialog in 1903 and 1909

guess_me_if_u_can 126 Reputation points

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


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

1 answer

Sort by: Most helpful
  1. Richard Zhang-MSFT 6,936 Reputation points


    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:

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