Exemplo n.º 1
0
        public void SetFocusOnTextBlock(bool isFocused)
        {
            AllowFocus(isFocused);
            SetFocus(isFocused);
            _isTexstBlockFocused = isFocused;

            if (isFocused)
            {
                TextBlockFocused?.Invoke(this, EventArgs.Empty);
            }
            else
            {
                TextBlockUnfocused?.Invoke(this, EventArgs.Empty);
            }
        }
Exemplo n.º 2
0
 protected virtual void OnTextBlockFocused()
 {
     TextBlockFocused?.Invoke(this, EventArgs.Empty);
 }