Int32EditBox in DataTemplate keydown event handled by parent

Editors for WPF Forum

Posted 12 years ago by Gert-Jan
Version: 12.1.0561
Avatar

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}"
                Width="50"
                Header="{locExt:Resource Start_At}">
                <GridViewColumn.CellTemplate>
                    <DataTemplate>
                        <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}">
                                <editors:Int32EditBox.IsEnabled>
                                    <MultiBinding Converter="{StaticResource booleanAndConverter}">
                                        <Binding Path="IsActive" />
                                        <Binding Path="HasChildren" />
                                    </MultiBinding>
                                </editors:Int32EditBox.IsEnabled>
                            </editors:Int32EditBox>
                        </StackPanel>
                    </DataTemplate>
                </GridViewColumn.CellTemplate>
            </GridViewColumn>

[Modified 12 years ago]

Comments (1)

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

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 support@actiprosoftware.com, 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 1 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.