チェックボックスの ObjectDataProvider があります。
<UserControl.Resources>
<ObjectDataProvider x:Key="checkboxes" ObjectType="{x:Type Models:Items}" />
<DataTemplate x:Key="Item" DataType="Models:Item" >
<CheckBox Content="{Binding Path=Name}" IsChecked="{Binding Path=Include}" />
</DataTemplate>
<ItemsPanelTemplate x:Key="HorizontalList" >
<StackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</UserControl.Resources>
コントロールをタブで移動してデータテンプレートに到達すると、次のように、内部のコントロールに移動する前にそれが選択されているように見えます-
これをオフにする方法はありますか?
結論
ObjectDataProvider ではなく、無効にする必要がある ItemsControl です。
<ItemsControl ItemsSource="{Binding ElementName=container,Path=ViewModel.Items}"
ItemTemplate="{StaticResource Item}"
ItemsPanel="{StaticResource HorizontalList}"
IsTabStop="False"/>
ありがとう!