|
93 | 93 | <VisualState x:Name="Normal" />
|
94 | 94 | <VisualState x:Name="PointerOver">
|
95 | 95 | <VisualState.Setters>
|
96 |
| - <Setter Target="ContentPresenter.Background" Value="{ThemeResource TabViewItemHeaderBackgroundPointerOver}" /> |
| 96 | + <Setter Target="Indicator.Opacity" Value="1" /> |
| 97 | + <Setter Target="Indicator.Background" Value="{ThemeResource TabViewItemHeaderBackgroundPointerOver}" /> |
97 | 98 | </VisualState.Setters>
|
98 | 99 | </VisualState>
|
99 | 100 | <VisualState x:Name="Pressed" />
|
100 | 101 | <VisualState x:Name="Selected">
|
101 | 102 | <VisualState.Setters>
|
102 | 103 | <Setter Target="BottomLine.Opacity" Value="0" />
|
103 | 104 | <Setter Target="Indicator.Opacity" Value="1" />
|
104 |
| - <Setter Target="ContentPresenter.Background" Value="{ThemeResource CardBackgroundFillColorDefaultBrush}" /> |
| 105 | + <Setter Target="Indicator.Background" Value="{ThemeResource CardBackgroundFillColorDefaultBrush}" /> |
105 | 106 | </VisualState.Setters>
|
106 | 107 | </VisualState>
|
107 | 108 | <VisualState x:Name="PointerOverSelected">
|
108 | 109 | <VisualState.Setters>
|
109 | 110 | <Setter Target="BottomLine.Opacity" Value="0" />
|
110 | 111 | <Setter Target="Indicator.Opacity" Value="1" />
|
111 |
| - <Setter Target="ContentPresenter.Background" Value="{ThemeResource CardBackgroundFillColorDefaultBrush}" /> |
| 112 | + <Setter Target="Indicator.Background" Value="{ThemeResource CardBackgroundFillColorDefaultBrush}" /> |
112 | 113 | </VisualState.Setters>
|
113 | 114 | </VisualState>
|
114 | 115 | <VisualState x:Name="PressedSelected">
|
115 | 116 | <VisualState.Setters>
|
116 | 117 | <Setter Target="BottomLine.Opacity" Value="0" />
|
117 | 118 | <Setter Target="Indicator.Opacity" Value="1" />
|
118 |
| - <Setter Target="ContentPresenter.Background" Value="{ThemeResource CardBackgroundFillColorDefaultBrush}" /> |
| 119 | + <Setter Target="Indicator.Background" Value="{ThemeResource CardBackgroundFillColorDefaultBrush}" /> |
119 | 120 | </VisualState.Setters>
|
120 | 121 | </VisualState>
|
121 | 122 | </VisualStateGroup>
|
|
127 | 128 | VerticalAlignment="Bottom"
|
128 | 129 | Background="{TemplateBinding BorderBrush}" />
|
129 | 130 |
|
| 131 | + <Border x:Name="Separator" |
| 132 | + Grid.Column="1" |
| 133 | + Width="1" |
| 134 | + Margin="{ThemeResource TabViewItemSeparatorMargin}" |
| 135 | + HorizontalAlignment="Right" |
| 136 | + Background="{ThemeResource TabViewItemSeparator}" /> |
| 137 | + |
| 138 | + <Border x:Name="Indicator" |
| 139 | + Grid.Column="1" |
| 140 | + BorderBrush="{TemplateBinding BorderBrush}" |
| 141 | + BorderThickness="1,1,1,0" |
| 142 | + CornerRadius="4,4,0,0" |
| 143 | + Opacity="0" /> |
| 144 | + |
130 | 145 | <ContentPresenter x:Name="ContentPresenter"
|
131 | 146 | Grid.Column="1"
|
132 | 147 | Padding="8,2,8,2"
|
|
139 | 154 | FontSize="{ThemeResource TabViewItemHeaderFontSize}"
|
140 | 155 | FontWeight="{TemplateBinding FontWeight}"
|
141 | 156 | Foreground="{ThemeResource TabViewItemHeaderForeground}" />
|
142 |
| - |
143 |
| - <Grid Grid.Column="1" |
144 |
| - IsHitTestVisible="False"> |
145 |
| - <Border x:Name="Separator" |
146 |
| - Width="1" |
147 |
| - Margin="{ThemeResource TabViewItemSeparatorMargin}" |
148 |
| - HorizontalAlignment="Right" |
149 |
| - Background="{ThemeResource TabViewItemSeparator}" /> |
150 |
| - |
151 |
| - <Border x:Name="Indicator" |
152 |
| - BorderBrush="{TemplateBinding BorderBrush}" |
153 |
| - BorderThickness="1,1,1,0" |
154 |
| - CornerRadius="4,4,0,0" |
155 |
| - Opacity="0" /> |
156 |
| - </Grid> |
157 | 157 | </Grid>
|
158 | 158 | </ControlTemplate>
|
159 | 159 | </Setter.Value>
|
|
0 commit comments