void colorButton_MouseButtonClick(Widget source, EventArgs e) { ColorMenu.ShowColorMenu(source.AbsoluteLeft, source.AbsoluteTop + source.Height, color => { this.color = color; syncColorToButton(); setValue(); }); }
public override void clicked(TaskPositioner positioner) { IntVector2 location = positioner.findGoodWindowPosition(0, 0); ColorMenu colorMenu = ColorMenu.ShowColorMenu(location.x, location.y, delegate(Color color) { sceneViewController.ActiveWindow.BackColor = color; }); colorMenu.Hiding += (sender, e) => { fireItemClosed(); }; }
void colorButton_MouseButtonClick(Widget source, EventArgs e) { ColorMenu.ShowColorMenu(this.Left, this.Top, (c) => { }); }