protected override void OnContextMenuOpening(ContextMenuEventArgs e) { base.OnContextMenuOpening(e); //FIXME: If you right-click on the scroll bar when the menu is open, it is shown in the new position. It should happen only after a certain amount of time. if (context_menu == null) { context_menu = new ScrollBarContextMenu(); } context_menu.Owner = this; context_menu.IsOpen = true; }
protected override void OnContextMenuOpening (ContextMenuEventArgs e) { base.OnContextMenuOpening (e); //FIXME: If you right-click on the scroll bar when the menu is open, it is shown in the new position. It should happen only after a certain amount of time. if (context_menu == null) context_menu = new ScrollBarContextMenu (); context_menu.Owner = this; context_menu.IsOpen = true; }