internal override void Changed(bool e)
 {
     BSCollapseEvent = new BSCollapseEvent()
     {
         Target = this
     };
     if (e)
     {
         ShowEvent.InvokeAsync(BSCollapseEvent);
         EventQue.Add(ShownEvent);
     }
     else
     {
         if (IsNavbar && Navbar != null)
         {
             if (Navbar.HasCollapsed == false)
             {
                 Navbar.HasCollapsed = true;
                 Navbar.Visable      = false;
             }
         }
         HideEvent.InvokeAsync(BSCollapseEvent);
         EventQue.Add(HiddenEvent);
     }
 }
Exemple #2
0
        internal override async Task Changed(bool e)
        {
            Collapsing = true;

            BSCollapseEvent = new BSCollapseEvent()
            {
                Target = this
            };
            if (e)
            {
                await ShowEvent.InvokeAsync(BSCollapseEvent).ConfigureAwait(false);

                EventQue.Add(ShownEvent);
            }
            else
            {
                if (IsNavbar && Navbar != null)
                {
                    if (Navbar.HasCollapsed == false)
                    {
                        Navbar.HasCollapsed = true;
                        Navbar.Visible      = false;
                    }
                }
                await HideEvent.InvokeAsync(BSCollapseEvent).ConfigureAwait(false);

                EventQue.Add(HiddenEvent);
            }
        }