From 47540457b8f63ab1610362f5e3aa025397ce97bf Mon Sep 17 00:00:00 2001 From: Daniel Clark Date: Sat, 27 Feb 2021 17:40:05 +0000 Subject: [PATCH] show popup first and then set the placement... this is to ensure we are getting the correct size --- .../SampleFlyout.xaml | 4 +- .../NotificationFlyout/NotificationFlyout.cs | 96 +++++++++++++------ .../NotificationFlyoutPlacement.cs | 2 +- .../NotificationFlyoutApplication.cs | 5 +- 4 files changed, 70 insertions(+), 37 deletions(-) diff --git a/samples/NotificationFlyoutSample/SampleFlyout.xaml b/samples/NotificationFlyoutSample/SampleFlyout.xaml index 66e4f9b..b9104df 100644 --- a/samples/NotificationFlyoutSample/SampleFlyout.xaml +++ b/samples/NotificationFlyoutSample/SampleFlyout.xaml @@ -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"> - +