Пример #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);
            }
        }
Пример #2
0
 protected virtual void OnTextBlcokUnfocused()
 {
     TextBlockUnfocused?.Invoke(this, EventArgs.Empty);
 }