public void AddOrUpdateFlyouts(IFlyoutBaseVm flyout)
        {
            var flyoutType = flyout.GetType();
            var oldFlyout  = Flyouts.FirstOrDefault(e => e.GetType().Name == flyoutType.Name);

            if (oldFlyout != null)
            {
                Flyouts.Remove(oldFlyout);
            }
            Flyouts.Add(BootStrapper.CreateFlyoutControl(flyout));
        }
Beispiel #2
0
        public static void PopFlyout(string flyoutName)
        {
            if (flyoutName is null)
            {
                throw new ArgumentNullException(nameof(flyoutName));
            }

            var old = (Flyout)App.Current.Resources[flyoutName];

            Flyouts.Remove(old);
        }