Exemplo n.º 1
0
        public void Handle(OpenFlyoutEvent message)
        {
            var flyout = Flyouts.FirstOrDefault(f => f.Flyout == message.Flyout);

            if (flyout != null)
            {
                flyout.IsOpen = true;
            }
        }
        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));
        }