Beispiel #1
0
 public virtual void UnFocus(UIActionEvent e)
 {
     IsFocused = false;
     OnUnFocused?.Invoke(e, this);
     if (PropagationRule.HasFlag(PropagationFlags.UnFocus))
     {
         Parent?.UnFocus(e);
     }
 }
Beispiel #2
0
        public void UnFocus()
        {
            if (!IsFocused)
            {
                return;
            }

            IsFocused = false;

            _focusableObjects.ForEach(o => o.UnFocus());

            OnUnFocused?.Invoke(this, null);

            SetUnFocusStyle();
        }