NumericUpDown: AccessKeys do not focus control

Mar 24, 2011 at 2:17 PM

Hello,

It appears the access keys for the numeric up down control do not work. Creating a simple window such as:

<Window x:Class="NumericUpDownSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:toolkit="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit.Extended"
        Title="MainWindow" Height="350" Width="525">
    <StackPanel>
        <Label Content="De_cimal Places" Target="{Binding ElementName=upDown}" />
        <toolkit:NumericUpDown x:Name="upDown" />
    </StackPanel>
</Window>

When using alt + c, the control will not focus. As a quick test, when we override OnAccessKey of the NumericUpDown to focus the textbox, it works as expected.

Mar 24, 2011 at 2:20 PM

Yes, this is a known issue in v1.3.0, but has been fixed in the latest v1.4.0.  The fix can be downloaded from the latest source code.

Mar 24, 2011 at 2:55 PM

Thank you. I will update to the latest version