public virtual void UnFocus(UIActionEvent e) { IsFocused = false; OnUnFocused?.Invoke(e, this); if (PropagationRule.HasFlag(PropagationFlags.UnFocus)) { Parent?.UnFocus(e); } }
public void UnFocus() { if (!IsFocused) { return; } IsFocused = false; _focusableObjects.ForEach(o => o.UnFocus()); OnUnFocused?.Invoke(this, null); SetUnFocusStyle(); }