|
36 | 36 | <Setter Property="wpf:ColorZoneAssist.Mode" Value="PrimaryMid" />
|
37 | 37 | <Setter Property="wpf:ElevationAssist.Elevation" Value="Dp4" />
|
38 | 38 | <Setter Property="wpf:ShadowAssist.ShadowEdges" Value="Bottom" />
|
| 39 | + <Setter Property="wpf:TabAssist.HasUniformTabWidth" Value="False"/> |
39 | 40 | <Setter Property="Template">
|
40 | 41 | <Setter.Value>
|
41 | 42 | <ControlTemplate TargetType="{x:Type TabControl}">
|
|
98 | 99 | <Setter TargetName="HeaderPanel" Property="Visibility" Value="Collapsed" />
|
99 | 100 | <Setter TargetName="CenteredHeaderPanel" Property="Visibility" Value="Visible" />
|
100 | 101 | </Trigger>
|
101 |
| - <Trigger Property="HorizontalContentAlignment" Value="Center"> |
102 |
| - <Setter TargetName="HeaderPanel" Property="Visibility" Value="Collapsed" /> |
103 |
| - <Setter TargetName="CenteredHeaderPanel" Property="Visibility" Value="Visible" /> |
104 |
| - </Trigger> |
105 |
| - <Trigger Property="HorizontalContentAlignment" Value="Left"> |
106 |
| - <Setter TargetName="HeaderPanel" Property="Visibility" Value="Visible" /> |
107 |
| - <Setter TargetName="CenteredHeaderPanel" Property="Visibility" Value="Collapsed" /> |
108 |
| - </Trigger> |
109 |
| - <Trigger Property="HorizontalContentAlignment" Value="Right"> |
110 |
| - <Setter TargetName="HeaderPanel" Property="Visibility" Value="Visible" /> |
111 |
| - <Setter TargetName="CenteredHeaderPanel" Property="Visibility" Value="Collapsed" /> |
112 |
| - </Trigger> |
| 102 | + <MultiTrigger> |
| 103 | + <MultiTrigger.Conditions> |
| 104 | + <Condition Property="HorizontalContentAlignment" Value="Center"/> |
| 105 | + <Condition Property="wpf:TabAssist.HasUniformTabWidth" Value="False"/> |
| 106 | + </MultiTrigger.Conditions> |
| 107 | + <MultiTrigger.Setters> |
| 108 | + <Setter TargetName="HeaderPanel" Property="Visibility" Value="Visible" /> |
| 109 | + <Setter TargetName="CenteredHeaderPanel" Property="Visibility" Value="Collapsed" /> |
| 110 | + </MultiTrigger.Setters> |
| 111 | + </MultiTrigger> |
| 112 | + <MultiTrigger> |
| 113 | + <MultiTrigger.Conditions> |
| 114 | + <Condition Property="HorizontalContentAlignment" Value="Center"/> |
| 115 | + <Condition Property="wpf:TabAssist.HasUniformTabWidth" Value="True"/> |
| 116 | + </MultiTrigger.Conditions> |
| 117 | + <MultiTrigger.Setters> |
| 118 | + <Setter TargetName="HeaderPanel" Property="Visibility" Value="Collapsed" /> |
| 119 | + <Setter TargetName="CenteredHeaderPanel" Property="Visibility" Value="Visible" /> |
| 120 | + </MultiTrigger.Setters> |
| 121 | + </MultiTrigger> |
| 122 | + |
| 123 | + <MultiTrigger> |
| 124 | + <MultiTrigger.Conditions> |
| 125 | + <Condition Property="HorizontalContentAlignment" Value="Left"/> |
| 126 | + <Condition Property="wpf:TabAssist.HasUniformTabWidth" Value="False"/> |
| 127 | + </MultiTrigger.Conditions> |
| 128 | + <MultiTrigger.Setters> |
| 129 | + <Setter TargetName="HeaderPanel" Property="Visibility" Value="Visible" /> |
| 130 | + <Setter TargetName="CenteredHeaderPanel" Property="Visibility" Value="Collapsed" /> |
| 131 | + </MultiTrigger.Setters> |
| 132 | + </MultiTrigger> |
| 133 | + <MultiTrigger> |
| 134 | + <MultiTrigger.Conditions> |
| 135 | + <Condition Property="HorizontalContentAlignment" Value="Left"/> |
| 136 | + <Condition Property="wpf:TabAssist.HasUniformTabWidth" Value="True"/> |
| 137 | + </MultiTrigger.Conditions> |
| 138 | + <MultiTrigger.Setters> |
| 139 | + <Setter TargetName="HeaderPanel" Property="Visibility" Value="Collapsed" /> |
| 140 | + <Setter TargetName="CenteredHeaderPanel" Property="Visibility" Value="Visible" /> |
| 141 | + </MultiTrigger.Setters> |
| 142 | + </MultiTrigger> |
| 143 | + <MultiTrigger> |
| 144 | + <MultiTrigger.Conditions> |
| 145 | + <Condition Property="HorizontalContentAlignment" Value="Right"/> |
| 146 | + <Condition Property="wpf:TabAssist.HasUniformTabWidth" Value="False"/> |
| 147 | + </MultiTrigger.Conditions> |
| 148 | + <MultiTrigger.Setters> |
| 149 | + <Setter TargetName="HeaderPanel" Property="Visibility" Value="Visible" /> |
| 150 | + <Setter TargetName="CenteredHeaderPanel" Property="Visibility" Value="Collapsed" /> |
| 151 | + </MultiTrigger.Setters> |
| 152 | + </MultiTrigger> |
| 153 | + <MultiTrigger> |
| 154 | + <MultiTrigger.Conditions> |
| 155 | + <Condition Property="HorizontalContentAlignment" Value="Right"/> |
| 156 | + <Condition Property="wpf:TabAssist.HasUniformTabWidth" Value="True"/> |
| 157 | + </MultiTrigger.Conditions> |
| 158 | + <MultiTrigger.Setters> |
| 159 | + <Setter TargetName="HeaderPanel" Property="Visibility" Value="Collapsed" /> |
| 160 | + <Setter TargetName="CenteredHeaderPanel" Property="Visibility" Value="Visible" /> |
| 161 | + </MultiTrigger.Setters> |
| 162 | + </MultiTrigger> |
113 | 163 | <Trigger Property="TabStripPlacement" Value="Bottom">
|
114 | 164 | <Setter TargetName="PART_HeaderZone" Property="DockPanel.Dock" Value="Bottom" />
|
115 | 165 | <Setter Property="wpf:ShadowAssist.ShadowEdges" Value="Top" />
|
|
142 | 192 | <Setter Property="wpf:ColorZoneAssist.Background" Value="Transparent" />
|
143 | 193 | </Style>
|
144 | 194 |
|
| 195 | + <Style x:Key="MaterialDesignUniformTabControl" |
| 196 | + BasedOn="{StaticResource MaterialDesignTabControl}" |
| 197 | + TargetType="{x:Type TabControl}"> |
| 198 | + <Setter Property="wpf:TabAssist.HasUniformTabWidth" Value="True"/> |
| 199 | + </Style> |
| 200 | + |
145 | 201 | <Style x:Key="MaterialDesignFilledTabControl"
|
146 | 202 | BasedOn="{StaticResource MaterialDesignTabControlBase}"
|
147 | 203 | TargetType="{x:Type TabControl}">
|
|
183 | 239 | </Style.Triggers>
|
184 | 240 | </Style>
|
185 | 241 |
|
| 242 | + <Style x:Key="MaterialDesignFilledUniformTabControl" |
| 243 | + BasedOn="{StaticResource MaterialDesignFilledTabControl}" |
| 244 | + TargetType="{x:Type TabControl}"> |
| 245 | + <Setter Property="wpf:TabAssist.HasUniformTabWidth" Value="True"/> |
| 246 | + </Style> |
| 247 | + |
186 | 248 | <Style x:Key="MaterialDesignTabItem" TargetType="{x:Type TabItem}">
|
187 | 249 | <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}" />
|
188 | 250 | <Setter Property="Background" Value="Transparent" />
|
|
0 commit comments