Browse Source

Selector fix

Benedikt Schroeder 7 years ago
parent
commit
8985af21ba
1 changed files with 5 additions and 1 deletions
  1. 5 1
      samples/ControlCatalog/SideBar.xaml

+ 5 - 1
samples/ControlCatalog/SideBar.xaml

@@ -52,12 +52,16 @@
             </Transitions>
         </Setter>
     </Style>
+    <Style Selector="TabControl.sidebar > TabItem:pointerover">
+        <Setter Property="Opacity" Value="1"/>
+    </Style>
     <Style Selector="TabControl.sidebar > TabItem:pointerover /template/ ContentPresenter#PART_ContentPresenter">
         <Setter Property="Background" Value="Transparent"/>
+    </Style>
+    <Style Selector="TabControl.sidebar > TabItem:selected">
         <Setter Property="Opacity" Value="1"/>
     </Style>
     <Style Selector="TabControl.sidebar > TabItem:selected /template/ ContentPresenter#PART_ContentPresenter">
         <Setter Property="Background" Value="{DynamicResource ThemeAccentBrush2}"/>
-        <Setter Property="Opacity" Value="1"/>
     </Style>
 </Styles>