Keyboard navigation on SplitButton.

Ribbon for WPF Forum

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

Comments (4)

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

Thanks for the reply.

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

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

Thank you.

The latest build of this product (v2019.1 build 0685) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.