public void SetFocusOnTextBlock(bool isFocused) { AllowFocus(isFocused); SetFocus(isFocused); _isTexstBlockFocused = isFocused; if (isFocused) { TextBlockFocused?.Invoke(this, EventArgs.Empty); } else { TextBlockUnfocused?.Invoke(this, EventArgs.Empty); } }
protected virtual void OnTextBlcokUnfocused() { TextBlockUnfocused?.Invoke(this, EventArgs.Empty); }