show popup first and then set the placement... this is to ensure we are getting the correct size

This commit is contained in:
Daniel Clark
2021-02-27 17:40:05 +00:00
parent 1800eefd5a
commit 47540457b8
4 changed files with 70 additions and 37 deletions
@@ -3,13 +3,13 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:TheXamlGuy.NotificationFlyout.Uwp.UI.Controls"
IsLightDismissEnabled="False">
Placement="Auto">
<controls:NotificationFlyout.ContextFlyout>
<MenuFlyout>
<MenuFlyoutItem Click="OnCloseMenuFlyoutItemClick" Text="Close" />
</MenuFlyout>
</controls:NotificationFlyout.ContextFlyout>
<Grid Width="500" Height="400">
<Grid>
<Button
HorizontalAlignment="Center"
VerticalAlignment="Center"