// 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(); } }
// 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; } }
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; } }