Esempio 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);
            }
        }
Esempio n. 2
0
 protected virtual void OnTextBlockFocused()
 {
     TextBlockFocused?.Invoke(this, EventArgs.Empty);
 }