Skip to content

Commit

Permalink
Merge pull request #311 from MarkDHarper/1144932
Browse files Browse the repository at this point in the history
Fix 1144932 by in ComboBoxSample by setting the tab-order to the logical order of operations
  • Loading branch information
MarkDHarper authored Oct 21, 2020
2 parents fd76629 + 4d175f7 commit 5c8b29d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Sample Applications/CustomComboBox/Styles.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<ToggleButton FocusVisualStyle="{DynamicResource CustomFocusVisual}"
AutomationProperties.Name="Play">
AutomationProperties.Name="Play" TabIndex="0">
<ToggleButton.Template>
<ControlTemplate TargetType="ToggleButton">
<Border Background="Transparent">
Expand Down Expand Up @@ -294,7 +294,7 @@
<Grid Grid.Column="2" Height="37">
<Button AutomationProperties.Name="Watch Now" FocusVisualStyle="{DynamicResource CustomFocusVisual}" Command="{Binding Command, RelativeSource={RelativeSource TemplatedParent}}"
CommandParameter="{Binding ElementName=lstBx, Path=SelectedItem}"
Content="{TemplateBinding Content}">
Content="{TemplateBinding Content}" TabIndex="2">
<Button.Template>
<ControlTemplate TargetType="Button">
<Border CornerRadius="4">
Expand Down Expand Up @@ -331,7 +331,8 @@
FocusVisualStyle="{DynamicResource CustomFocusVisual}"
ItemsSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ItemsSource}"
DisplayMemberPath="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DisplayMemberPath}"
SelectedValuePath="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DisplayMemberPath}">
SelectedValuePath="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DisplayMemberPath}"
TabIndex="1">
<ListBox.Resources>
<Style TargetType="ScrollBar" BasedOn="{StaticResource ScrollBarStyle}" />
<Style TargetType="ListBoxItem" BasedOn="{StaticResource ListBoxItemStyle}" />
Expand Down Expand Up @@ -379,4 +380,4 @@
</DataTrigger>
</Style.Triggers>
</Style>
</ResourceDictionary>
</ResourceDictionary>

0 comments on commit 5c8b29d

Please sign in to comment.