Permalink
Browse files

surround Flyout content with AdornerDecorator fixes incorrect FocusVi…

…sualStyle
  • Loading branch information...
punker76 committed Feb 24, 2015
1 parent cc0aef8 commit dc58b92f815484de8866d4af608fad22b699047d
Showing with 11 additions and 10 deletions.
  1. +11 −10 MahApps.Metro/Themes/Flyout.xaml
@@ -220,16 +220,17 @@
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<DockPanel FocusVisualStyle="{x:Null}"
Focusable="False">
<ContentPresenter x:Name="PART_Header"
DockPanel.Dock="Top"
ContentSource="Header"
ContentTemplate="{TemplateBinding HeaderTemplate}" />
<ContentPresenter x:Name="PART_Content"
DockPanel.Dock="Bottom">
</ContentPresenter>
</DockPanel>
<AdornerDecorator>
<DockPanel FocusVisualStyle="{x:Null}"
Focusable="False">
<ContentPresenter x:Name="PART_Header"
DockPanel.Dock="Top"
ContentSource="Header"
ContentTemplate="{TemplateBinding HeaderTemplate}" />
<ContentPresenter x:Name="PART_Content"
DockPanel.Dock="Bottom" />
</DockPanel>
</AdornerDecorator>
</Grid>
<ControlTemplate.Triggers>
<DataTrigger Binding="{Binding Position, RelativeSource={RelativeSource Self}}"

0 comments on commit dc58b92

Please sign in to comment.