SplitButton Access Keys

Ribbon for WPF Forum

Posted 15 years ago by Owen Christensen - Software Engineer, Minitab Inc.
Version: 4.5.0486
Avatar
System: .NET 3.5, Windows Vista, 64-bit

public partial class Window1 : Window
    {
        public Window1()
        {
            InitializeComponent();
            //AccessKeyManager.Register("T", Button);
        }

        private void Button_Click(object sender, ActiproSoftware.Windows.Controls.Ribbon.Controls.ExecuteRoutedEventArgs e)
        {
            Console.WriteLine("Actipro Button Click");
        }

        private void StandardButton_Click(object sender, RoutedEventArgs e)
        {
            Console.WriteLine("Standard Button Click");
        }
    }

<Window x:Class="WpfApplication13.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="300"
    xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon">
    <StackPanel>
        <Label Content="Go to Bu_tton" Target="{Binding ElementName=Button}"/>
        <ribbon:SplitButton Name="Button" Click="Button_Click" Label="Font Color"/>
        <Label Content="Standar_d Button" Target="{Binding ElementName=StandardButton}"/>
        <Button Name="StandardButton" Click="StandardButton_Click" Content="Standard Button"/>
        <Label Content="Go to T_extBox" Target="{Binding ElementName=TextBox}"/>
        <TextBox Name="TextBox"/>
    </StackPanel>
</Window>
Pressing Alt+D causes a click event on the standard button.
Pressing Alt+T does nothing on the Actipro SplitButton. I would expect, at the very least, that (keyboard) focus would be given to the split so space/down could be pressed to open the popup. I noticed that even when keyboard is on the splitbutton down/space/enter don't do anything useful. As far as I can tell there's no way to open the SplitButton by keyboard. Is this true?

Comments (4)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Owen,

Access text is something we need to work on after v5.0 is released. Right now keyboard is supported when the controls are in the Ribbon via key tips but not when used externally like this.

However SplitButton does support Space for presses and Alt+Down to show the popup. I just tried it in the Standalone Controls QuickStart in build 487.


Actipro Software Support

Posted 15 years ago by Owen Christensen - Software Engineer, Minitab Inc.
Avatar
Thanks for that.

What's the rough time frame on 5.0?
Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
We hope 2-3 weeks... Editors for WPF is ready to go, just finishing up a few last things on SyntaxEditor for WPF then need to update the web site, etc.


Actipro Software Support

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Just wanted to let you know, we have the access text feature implemented for the upcoming WPF Studio 2010.1 release. More details here:
http://blog.actiprosoftware.com/post.aspx?id=90073f31-b921-47ad-b885-215d8d9d24f3


Actipro Software Support

The latest build of this product (v24.1.3) was released 28 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.