Keyboard navigation on SplitButton.

Ribbon for WPF Forum

Posted 8 months 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 8 months ago]

Comments (4)

Posted 8 months 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 8 months ago by Jon Smith
Avatar

Thanks for the reply.

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

Answer - Posted 8 months 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 8 months ago by Jon Smith
Avatar

Thank you.

The latest build of this product (v2020.1.0) was released 18 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.