Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
530
How to focus elements inside custom CellValuePresenter
posted

We have a generated XAML application that creates CellValuePresenter styles on the fly, so there isn't a static style, but could include xamTextEditor, xamMaskedTextEditor, xamComboBox, etc, and may contain other UI buttons to launch List Of Values windows, etc.  An example of a simple one might be :

<igDP:FieldSettings.CellValuePresenterStyle><Style TargetType="{x:Type igDP:CellValuePresenter}"><Setter Property="Template"><Setter.Value><ControlTemplate><DockPanel HorizontalAlignment="Stretch"><DockPanel Width="Auto" DockPanel.Dock="Right"><buttons:LovButton LovContextId="LOV:Account:ACCT_NUM" /></DockPanel><DockPanel HorizontalAlignment="Stretch"><control:PentaTextBox  IsEnabled="True"  Visibility="Visible"  Name="_C5798786334B465A9C17BABE71BE9CB5_F394CA27A63A486D9C3463FCB68D6D0A"  IsReadOnly="False" TextAlignment="Left" BorderThickness="0" ><control:PentaTextBox.ValueConstraint><igEditors:ValueConstraint MaxLength="15" /></control:PentaTextBox.ValueConstraint><control:PentaTextBox.Value><Binding RelativeSource="{RelativeSource TemplatedParent}" Path="Content" Mode="Default" /></control:PentaTextBox.Value></control:PentaTextBox></DockPanel></DockPanel></ControlTemplate></Setter.Value></Setter></Style></igDP:FieldSettings.CellValuePresenterStyle>

 

My question is : do you have an example of how to put focus into the CellValuePresenter template when the cell is tabbed into?

Parents Reply Children