Int32EditBox in DataTemplate keydown event handled by parent

Editors for WPF Forum

Posted 12 years ago by Gert-Jan
Version: 12.1.0561

In the following DataTemplate I'm not able to put in a manual value into the Int32EditBox at runtime. Outside of the DataTemplate I can see using Snoop that it handles the KeyDown value as it should, but inside the DataTemplate the keydown it is handled by the parent, in this case an override of the ItemsControl.

Is there a solution to get data into the Int32EditBox through the keyboard instead of only the spinner while inside a DataTemplate, part of an ItemsControl override?


Exceprt from the code:

<GridViewColumn locExt:XAMLResourceSource.ResourceProvider="{locExt:XLIFFResProvider ResourceLocator=props:Resources.SequencePlayer}"
                Header="{locExt:Resource Start_At}">
                        <StackPanel Orientation="Horizontal">
                            <RadioButton GroupName="StartInstructionGroup" Visibility="{Binding Path=HasChildren, Converter={StaticResource boolNegationToVisibilityConverter}}" IsChecked="{Binding IsStartInstruction}"/>
                            <editors:Int32EditBox SpinnerVisibility="Visible" Visibility="{Binding Path=IsGroup, Converter={StaticResource boolToVisibilityConverter}}" Maximum="{Binding TotalSteps}" Minimum="1" Value="{Binding Path=StartCycle, Mode=TwoWay}">
                                    <MultiBinding Converter="{StaticResource booleanAndConverter}">
                                        <Binding Path="IsActive" />
                                        <Binding Path="HasChildren" />

[Modified 12 years ago]

Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Gert-Jan,

Could you send us a simple project that contains the issue so that we can debug it and take a closer look at your problem? You may send it to, please rename any .zip files to avoid them being marked as spam.

Actipro Software Support

The latest build of this product (v24.1.2) 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.