Skip to content

Commit 8d258c2

Browse files
author
Llifon Osian Jones
committed
Keyboard tab now ignores the Expander header
The expander had two tab stops before: the header panel and the down arrow. This has been changed so that only the arrow shows the focus visual style.
1 parent a7ae250 commit 8d258c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Expander.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@
274274
</VisualStateManager.VisualStateGroups>
275275
<DockPanel Background="{TemplateBinding Background}">
276276
<ToggleButton Name="HeaderSite"
277+
Focusable="False"
278+
IsTabStop="False"
277279
DockPanel.Dock="Top"
278280
BorderThickness="0" Cursor="Hand"
279281
IsChecked="{Binding Path=IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"

0 commit comments

Comments
 (0)