Example #1
0
        protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
        {
            base.OnMouseLeftButtonDown(e);

            if (!e.Handled)
            {
                AutoHideBar?.TabClicked(this);
                e.Handled = true;
            }
        }
Example #2
0
        protected override void OnKeyDown(KeyEventArgs e)
        {
            base.OnKeyDown(e);

            if (!e.Handled)
            {
                if ((e.Key == Key.Enter || e.Key == Key.Space))
                {
                    AutoHideBar?.TabClicked(this);
                }

                e.Handled = true;
            }
        }