Beispiel #1
0
        // ButtonBase.Click class handler
        // When we get a click event from toolbar item - close the overflow panel
        private static void _OnClick(object e, RoutedEventArgs args)
        {
            ToolBar    toolBar = (ToolBar)e;
            ButtonBase bb      = args.OriginalSource as ButtonBase;

            if (toolBar.IsOverflowOpen && bb != null && bb.Parent == toolBar)
            {
                toolBar.Close();
            }
        }
Beispiel #2
0
        // Token: 0x06005832 RID: 22578 RVA: 0x00186D14 File Offset: 0x00184F14
        private static void OnMouseButtonDown(object sender, MouseButtonEventArgs e)
        {
            ToolBar toolBar = (ToolBar)sender;

            if (!e.Handled)
            {
                toolBar.Close();
                e.Handled = true;
            }
        }
Beispiel #3
0
        private static void OnMouseButtonDown(object sender, MouseButtonEventArgs e)
        {
            ToolBar toolBar = (ToolBar)sender;

            // Close the overflow for all unhandled mousedown in ToolBar
            if (!e.Handled)
            {
                toolBar.Close();
                e.Handled = true;
            }
        }