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?
Hello,
You can look at this article by Andrew Smith to see how to handle the focus of controls in the Cells of the XamDataGrid.
http://blogs.infragistics.com/blogs/andrew_smith/archive/2009/03/27/hosting-wpf-controls-in-a-xamdatagrid-cell.aspx
Please let me know if you have any questions on this.
Regards,
Alex.
Thanks, Alex. That helped, and so did this (http://community.infragistics.com/forums/p/17141/62172.aspx). One last quick one in the same vain, is there a way to define cells that do not have TabStop at all in a XamDataGrid?