Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

taborder in datagridrow

$
0
0

WPF isn't respecting my tabindexes between the DataGridCellsPresenter and the DataGridDetailsPresenter.  When the wrapping container DataGridRow Border has it's attached propertyKeyboardNavigation.TabNavigation="Local", I expected the tabindexes would be treated on the same level.  Unfortunately, that's not the case.  Anyone know how to merge the two tab scopes together?

<infrastructure_controls:CustomDataGrid.RowStyle><Style TargetType="{x:Type DataGridRow}"><Setter Property="Template"><Setter.Value><ControlTemplate TargetType="{x:Type DataGridRow}"><Border KeyboardNavigation.TabNavigation="Local" x:Name="DGR_Border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True"><SelectiveScrollingGrid KeyboardNavigation.TabNavigation="Local"><SelectiveScrollingGrid.ColumnDefinitions><ColumnDefinition Width="Auto"/><ColumnDefinition Width="*"/></SelectiveScrollingGrid.ColumnDefinitions><SelectiveScrollingGrid.RowDefinitions><RowDefinition Height="*" /><RowDefinition Height="Auto"/></SelectiveScrollingGrid.RowDefinitions><DataGridRowHeader IsTabStop="False" Focusable="False" Grid.RowSpan="2" SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.Row}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/><DataGridCellsPresenter IsTabStop="False" TabIndex="0" Focusable="False" KeyboardNavigation.TabNavigation="Continue" Grid.Column="1" ItemsPanel="{TemplateBinding ItemsPanel}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/><DataGridDetailsPresenter KeyboardNavigation.TabNavigation="Continue" Grid.Column="1" Grid.Row="1" SelectiveScrollingGrid.SelectiveScrollingOrientation="{Binding AreRowDetailsFrozen, ConverterParameter={x:Static SelectiveScrollingOrientation.Vertical}, Converter={x:Static DataGrid.RowDetailsScrollingConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" Visibility="{TemplateBinding DetailsVisibility}"/></SelectiveScrollingGrid></Border></ControlTemplate></Setter.Value></Setter><Setter Property="Focusable" Value="False"/><Setter Property="IsTabStop" Value="False"/><Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/><Setter Property="SnapsToDevicePixels" Value="true"/><Setter Property="Validation.ErrorTemplate" Value="{x:Null}"/><Setter Property="ValidationErrorTemplate"><Setter.Value><ControlTemplate><TextBlock Foreground="Red" Margin="2,0,0,0" Text="!" VerticalAlignment="Center"/></ControlTemplate></Setter.Value></Setter></Style></infrastructure_controls:CustomDataGrid.RowStyle>



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>