Fluent.ComboBox.OnKeyTipPressed C# (CSharp) Method

OnKeyTipPressed() public method

Handles key tip pressed
public OnKeyTipPressed ( ) : void
return void
        public virtual void OnKeyTipPressed()
        {
            this.Dispatcher.BeginInvoke(
                DispatcherPriority.Normal,
                (DispatcherOperationCallback)delegate(object arg)
                {
                    var ctrl = (ComboBox)arg;

                    // Edge case: Whole dropdown content is disabled
                    if (ctrl.IsKeyboardFocusWithin == false)
                    {
                        Keyboard.Focus(ctrl);
                    }
                    return null;
                },
                this);

            if (!this.IsEditable)
            {
                this.IsDropDownOpen = true;
            }
        }