Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
		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;
		}