|
48 | 48 | <VisualState x:Name="Selected">
|
49 | 49 | <Storyboard>
|
50 | 50 | <DoubleAnimation Duration="0" To=".75" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectedBackground"/>
|
51 |
| - <!--ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground)" Storyboard.TargetName="NormalText"> |
| 51 | + <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground)" Storyboard.TargetName="NormalText"> |
52 | 52 | <DiscreteObjectKeyFrame Value="{DynamicResource PrimaryHueMidForegroundBrush}" KeyTime="0" />
|
53 |
| - </--> |
| 53 | + </ObjectAnimationUsingKeyFrames> |
54 | 54 | </Storyboard>
|
55 | 55 | </VisualState>
|
56 | 56 | </VisualStateGroup>
|
|
100 | 100 | <VisualState x:Name="Today">
|
101 | 101 | <Storyboard>
|
102 | 102 | <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="TodayBackground"/>
|
103 |
| - <!--ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground)" Storyboard.TargetName="NormalText"> |
| 103 | + <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground)" Storyboard.TargetName="NormalText"> |
104 | 104 | <DiscreteObjectKeyFrame Value="{DynamicResource PrimaryHueLightForegroundBrush}" KeyTime="0" />
|
105 |
| - </--> |
| 105 | + </ObjectAnimationUsingKeyFrames> |
106 | 106 | </Storyboard>
|
107 | 107 | </VisualState>
|
108 | 108 | </VisualStateGroup>
|
|
288 | 288 |
|
289 | 289 | <DataTemplate x:Key="{x:Static CalendarItem.DayTitleTemplateResourceKey}">
|
290 | 290 | <TextBlock Foreground="{DynamicResource MaterialDesignToolTipBackground}"
|
| 291 | + Opacity="0.65" |
291 | 292 | FontWeight="Bold"
|
292 | 293 | FontSize="9.5"
|
293 | 294 | FontFamily="Verdana"
|
|
360 | 361 | <VisualStateGroup x:Name="CommonStates">
|
361 | 362 | <VisualState x:Name="Normal"/>
|
362 | 363 | <VisualState x:Name="MouseOver" />
|
363 |
| - <VisualState x:Name="Disabled"> |
364 |
| - <Storyboard> |
365 |
| - <DoubleAnimation Duration="0" To=".5" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="buttonContent"/> |
366 |
| - </Storyboard> |
367 |
| - </VisualState> |
| 364 | + <VisualState x:Name="Disabled"/> |
368 | 365 | </VisualStateGroup>
|
369 | 366 | </VisualStateManager.VisualStateGroups>
|
370 |
| - <wpf:MaterialDateDisplay x:Name="buttonContent" Foreground="{DynamicResource PrimaryHueMidForegroundBrush}"> |
| 367 | + <wpf:MaterialDateDisplay x:Name="buttonContent" Foreground="{DynamicResource PrimaryHueMidForegroundBrush}" |
| 368 | + IsEnabled="{TemplateBinding IsEnabled}"> |
371 | 369 | <wpf:MaterialDateDisplay.DisplayDate>
|
372 | 370 | <MultiBinding Mode="OneWay">
|
373 | 371 | <MultiBinding.Converter>
|
|
385 | 383 | <ColumnDefinition Width="Auto"/>
|
386 | 384 | <ColumnDefinition Width="Auto"/>
|
387 | 385 | <ColumnDefinition Width="Auto"/>
|
388 |
| - <ColumnDefinition Width="Auto"/> |
389 | 386 | </Grid.ColumnDefinitions>
|
390 | 387 | <Grid.RowDefinitions>
|
391 | 388 | <RowDefinition Height="Auto"/>
|
392 | 389 | <RowDefinition Height="Auto"/>
|
393 | 390 | <RowDefinition Height="Auto"/>
|
394 | 391 | <RowDefinition Height="*"/>
|
395 | 392 | </Grid.RowDefinitions>
|
396 |
| - <Border Grid.ColumnSpan="3" Grid.Row="0" Background="{DynamicResource PrimaryHueDarkBrush}" CornerRadius="2 2 0 0"> |
397 |
| - <TextBlock HorizontalAlignment="Center" Foreground="{DynamicResource PrimaryHueDarkForegroundBrush}" Margin="8" FontSize="14"> |
398 |
| - <TextBlock.Text> |
399 |
| - <MultiBinding Mode="OneWay" StringFormat="dddd" ConverterCulture="{x:Static globalization:CultureInfo.CurrentUICulture}" > |
400 |
| - <MultiBinding.Converter> |
401 |
| - <converters:CalendarDateCoalesceConverter /> |
402 |
| - </MultiBinding.Converter> |
403 |
| - <Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type Calendar}}" Path="DisplayDate" /> |
404 |
| - <Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type Calendar}}" Path="SelectedDate" /> |
405 |
| - </MultiBinding> |
406 |
| - </TextBlock.Text> |
407 |
| - </TextBlock> |
408 |
| - </Border> |
409 |
| - <Border Grid.ColumnSpan="3" Grid.Row="1" Background="{DynamicResource PrimaryHueMidBrush}" /> |
410 |
| - <Button x:Name="PART_HeaderButton" Grid.Row="1" Grid.Column="1" FontWeight="Bold" Focusable="False" FontSize="10.5" HorizontalAlignment="Center" Template="{StaticResource HeaderButtonTemplate}" VerticalAlignment="Center" |
411 |
| - Height="142" |
412 |
| - /> |
413 |
| - <Button x:Name="PART_PreviousButton" Grid.Row="2" Grid.Column="0" Focusable="False" HorizontalAlignment="Left" Height="36" Template="{StaticResource PreviousButtonTemplate}" Width="32" |
| 393 | + <Border Grid.ColumnSpan="3" Grid.Row="0" Background="{DynamicResource PrimaryHueMidBrush}" /> |
| 394 | + <Button x:Name="PART_HeaderButton" |
| 395 | + Grid.Row="0" |
| 396 | + Grid.ColumnSpan="3" |
| 397 | + FontWeight="Bold" Focusable="False" FontSize="10.5" |
| 398 | + HorizontalAlignment="Left" VerticalAlignment="Center" |
| 399 | + Template="{StaticResource HeaderButtonTemplate}" |
| 400 | + Height="Auto" |
| 401 | + Margin="20 15"/> |
| 402 | + <Button x:Name="PART_PreviousButton" Grid.Row="1" Grid.Column="0" Focusable="False" HorizontalAlignment="Left" Height="36" Template="{StaticResource PreviousButtonTemplate}" Width="32" |
414 | 403 | Margin="6 0 0 0" Foreground="{TemplateBinding Foreground}" />
|
415 | 404 | <TextBlock x:Name="CurrentDateTextBlock"
|
416 | 405 | HorizontalAlignment="Center" VerticalAlignment="Center"
|
417 | 406 | Margin="8"
|
418 | 407 | FontSize="14"
|
419 |
| - Grid.Row="2" Grid.Column="1" |
| 408 | + Grid.Row="1" Grid.Column="1" |
420 | 409 | FontWeight="SemiBold"
|
421 | 410 | RenderTransformOrigin="0, 0.5"
|
422 | 411 | Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Calendar}}, Path=DisplayDate, ConverterCulture={x:Static globalization:CultureInfo.CurrentUICulture}, StringFormat=MMMM yyyy}">
|
423 | 412 | <TextBlock.RenderTransform>
|
424 | 413 | <TranslateTransform X="0" Y="0"/>
|
425 | 414 | </TextBlock.RenderTransform>
|
426 | 415 | </TextBlock>
|
427 |
| - <Button x:Name="PART_NextButton" Grid.Row="2" Grid.Column="2" Focusable="False" HorizontalAlignment="Right" Height="36" Template="{StaticResource NextButtonTemplate}" Width="32" |
| 416 | + <Button x:Name="PART_NextButton" Grid.Row="1" Grid.Column="2" Focusable="False" HorizontalAlignment="Right" Height="36" Template="{StaticResource NextButtonTemplate}" Width="32" |
428 | 417 | Margin="0 0 6 0" Foreground="{TemplateBinding Foreground}" />
|
429 | 418 |
|
430 | 419 | <Grid x:Name="MonthViewWrapperGrid"
|
431 | 420 | Grid.ColumnSpan="3"
|
432 |
| - Grid.Row="3" |
| 421 | + Grid.Row="2" |
433 | 422 | HorizontalAlignment="Center"
|
434 | 423 | VerticalAlignment="Top"
|
435 | 424 | Margin="6 -1 6 6"
|
|
470 | 459 |
|
471 | 460 | <Grid x:Name="YearViewWrapperGrid"
|
472 | 461 | Grid.ColumnSpan="3"
|
473 |
| - Grid.Row="3" |
| 462 | + Grid.Row="2" |
474 | 463 | HorizontalAlignment="Center"
|
475 | 464 | VerticalAlignment="Top"
|
476 | 465 | Margin="6 -3 7 6"
|
|
484 | 473 | <TranslateTransform X="0"/>
|
485 | 474 | </Border.RenderTransform>
|
486 | 475 | </Border>
|
487 |
| - <Grid x:Name="PART_YearView" RenderTransformOrigin="0, 0.5"> |
| 476 | + <Grid x:Name="PART_YearView" |
| 477 | + RenderTransformOrigin="0, 0.5"> |
488 | 478 | <Grid.RenderTransform>
|
489 | 479 | <TranslateTransform X="0" />
|
490 | 480 | </Grid.RenderTransform>
|
|
0 commit comments