Keyboard navigation on SplitButton.

Ribbon for WPF Forum

The latest build of this product (v2019.1 build 0684) was released 1 month ago, which was before this thread was created.
Posted 20 days ago by Jon Smith
Version: 19.1.0684
Avatar

Hello,

I am using Actipro SplitButton in my wpf application. How can i focus/open the right hand side (popup menu) of the Split button using only the keyboard?

Code:

<Actipro:SplitButton Focusable="True" DockPanel.Dock="Right"
AutoDisableWhenPopupContentIsDisabled="False" Label="Main"
PopupPlacement="Top">
<Actipro:SplitButton.PopupContent>
<ribbon:Menu>
<Button Content="Sub 1">..
</Button>
<Separator/>
<Button Content="Sub 2">..
</Button>
</ribbon:Menu>
</Actipro:SplitButton.PopupContent>
</Actipro:SplitButton>

Thanks.

[Modified 20 days ago]

Comments (4)

Posted 17 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

I believe pressing Alt+Down when the SplitButton has focus will show the popup.  That same combination works with ComboBox and other drop-down controls.


Actipro Software Support

Posted 17 days ago by Jon Smith
Avatar

Thanks for the reply.

How can I update it with a different combination of keys!

Answer - Posted 16 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Jon,

You'd have to override the SplitButton.OnKeyDown method with your own logic to use different keys.


Actipro Software Support

Posted 16 days ago by Jon Smith
Avatar

Thank you.

Add Comment

Please log in to a validated account to post comments.