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 OnTextBlockFocused() { TextBlockFocused?.Invoke(this, EventArgs.Empty); }