|
202 | 202 | <Border Background="{TemplateBinding Background}"
|
203 | 203 | BorderBrush="{TemplateBinding BorderBrush}"
|
204 | 204 | BorderThickness="{TemplateBinding BorderThickness}">
|
205 |
| - <StackPanel> |
206 |
| - <TextBlock Text="{TemplateBinding ComponentOneContent}" HorizontalAlignment="Center" Margin="0 12 0 0" FontSize="24" FontWeight="Normal" /> |
207 |
| - <TextBlock Text="{TemplateBinding ComponentTwoContent}" HorizontalAlignment="Center" Margin="0 -6 0 0" FontSize="60" FontWeight="Normal" /> |
208 |
| - <TextBlock Text="{TemplateBinding ComponentThreeContent}" HorizontalAlignment="Center" Margin="0 -4 0 10" FontSize="24" Opacity=".56" FontWeight="Normal" /> |
| 205 | + <StackPanel Orientation="Vertical" |
| 206 | + Margin="0"> |
| 207 | + <TextBlock x:Name="ComponentThreeTextBlock" |
| 208 | + Text="{TemplateBinding ComponentThreeContent}" |
| 209 | + HorizontalAlignment="Left" |
| 210 | + FontSize="15" FontWeight="Normal" /> |
| 211 | + <StackPanel x:Name="ComponentOneTwoWrapper" Orientation="Horizontal" |
| 212 | + HorizontalAlignment="Left"> |
| 213 | + <TextBlock Text="{TemplateBinding ComponentTwoContent}" FontSize="30" FontWeight="Normal" /> |
| 214 | + <TextBlock Text="{TemplateBinding ComponentOneContent}" Margin="10 0 0 0" FontSize="30" FontWeight="Normal" /> |
| 215 | + </StackPanel> |
209 | 216 | </StackPanel>
|
210 | 217 | </Border>
|
| 218 | + <ControlTemplate.Triggers> |
| 219 | + <Trigger Property="IsDayInFirstComponent" Value="True"> |
| 220 | + <Setter TargetName="ComponentThreeTextBlock" Property="Opacity" Value=".56"/> |
| 221 | + </Trigger> |
| 222 | + <Trigger Property="IsEnabled" Value="False"> |
| 223 | + <Setter TargetName="ComponentThreeTextBlock" Property="Opacity" Value="1"/> |
| 224 | + <Setter TargetName="ComponentOneTwoWrapper" Property="Opacity" Value=".56"/> |
| 225 | + </Trigger> |
| 226 | + </ControlTemplate.Triggers> |
211 | 227 | </ControlTemplate>
|
212 | 228 | </Setter.Value>
|
213 | 229 | </Setter>
|
214 | 230 | <Style.Triggers>
|
215 |
| - <Trigger Property="IsDayInFirstComponent" Value="True"> |
216 |
| - <Setter Property="Template"> |
217 |
| - <Setter.Value> |
218 |
| - <ControlTemplate TargetType="{x:Type local:MaterialDateDisplay}"> |
219 |
| - <Border Background="{TemplateBinding Background}" |
220 |
| - BorderBrush="{TemplateBinding BorderBrush}" |
221 |
| - BorderThickness="{TemplateBinding BorderThickness}"> |
222 |
| - <StackPanel> |
223 |
| - <TextBlock Text="{TemplateBinding ComponentOneContent}" HorizontalAlignment="Center" Margin="0 4 0 0" FontSize="60" FontWeight="Normal" /> |
224 |
| - <TextBlock Text="{TemplateBinding ComponentTwoContent}" HorizontalAlignment="Center" Margin="0 -4 0 0" FontSize="24" FontWeight="Normal" /> |
225 |
| - <TextBlock Text="{TemplateBinding ComponentThreeContent}" HorizontalAlignment="Center" Margin="0 4 0 10" FontSize="24" Opacity=".56" FontWeight="Normal" /> |
226 |
| - </StackPanel> |
227 |
| - </Border> |
228 |
| - </ControlTemplate> |
229 |
| - </Setter.Value> |
230 |
| - </Setter> |
231 |
| - </Trigger> |
232 |
| - </Style.Triggers> |
| 231 | + </Style.Triggers> |
233 | 232 | </Style>
|
234 | 233 |
|
235 | 234 | <Style TargetType="{x:Type local:ListSortDirectionIndicator}">
|
|
0 commit comments