0

I am trying to tab through a datagrid, but at the end of the row I have a template column that is taking in a tab. I have set the datagrid cell style to not focusable and istabstop = false, but it still seems to be going into the content. Is there a property for a TemplateColumn that will have it be skipped by tabbing completely?

Thanks

4

2 回答 2

4

您可以在该列的 CellStyle 中设置 KeyboardNavigation.TabNavigation="None" :

<DataGridTemplateColumn>
    <DataGridTemplateColumn.CellStyle>
        <Style>
            <Setter Property="KeyboardNavigation.IsTabStop" Value="False" />
            <Setter Property="KeyboardNavigation.TabNavigation" Value="None" />
        </Style>
    </DataGridTemplateColumn.CellStyle>
    ...
于 2012-04-19T15:37:27.567 回答
0

尝试为您在模板列下使用的控件设置 IsTabStop=False。

于 2012-04-19T15:45:06.250 回答