private void HoverEventHandler(UIEvent e) { UIAttributes attr = new UIAttributes(); _actionHover?.Invoke(e, attr); RenderAttributes = DefaultAttributes.CascadeAttributes(attr); }
private void ClickEvent(UIEvent e) { UIAttributes attr = new UIAttributes(); _clickAction?.Invoke(e, attr); RenderAttributes = DefaultAttributes.CascadeAttributes(attr); }
private void HandleHoverEvent(UIEvent e) { UIAttributes attr = new UIAttributes { Background = new Color(125, 125, 125), Color = Color.White }; RenderAttributes = DefaultAttributes.CascadeAttributes(attr); }
private void KeyPressEvent(UIEvent e) { //mark key pressed _previousKey = e.Keyboard.KeyEnum; _keyRepeatCounter = 0; ProcessKeys(e); UIAttributes attr = new UIAttributes(); _keyPressAction?.Invoke(e, attr); RenderAttributes = DefaultAttributes.CascadeAttributes(attr); e.StopPropagation(); }