|
|
@@ -1,9 +1,8 @@
|
|
|
-<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
|
- <ResourceDictionary Source="pack://application:,,,/SKMC.UI;component/Assets/Icons.xaml"/>
|
|
|
+ <ResourceDictionary Source="pack://application:,,,/SKMC.UI;component/Assets/Icons.xaml" />
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
- <!--年-->
|
|
|
+ <!-- 年 -->
|
|
|
<Style x:Key="Calendar.CalendarButton" TargetType="{x:Type CalendarButton}">
|
|
|
<Setter Property="Background" Value="{DynamicResource Brush.SignatureAccent}" />
|
|
|
<Setter Property="FontSize" Value="15" />
|
|
|
@@ -13,30 +12,34 @@
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="{x:Type CalendarButton}">
|
|
|
<Grid>
|
|
|
- <Rectangle Name="SelectedBackground"
|
|
|
- Fill="{TemplateBinding Control.Background}"
|
|
|
- Opacity="0"
|
|
|
- RadiusX="26"
|
|
|
- RadiusY="26" />
|
|
|
- <Rectangle Name="Background"
|
|
|
- Fill="{TemplateBinding Control.Background}"
|
|
|
- Opacity="0"
|
|
|
- RadiusX="26"
|
|
|
- RadiusY="26" />
|
|
|
- <ContentPresenter Name="NormalText" Margin="1,0,1,1"
|
|
|
- HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
|
|
|
- VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
|
|
|
- TextElement.Foreground="#FFFFFF" />
|
|
|
+ <Rectangle
|
|
|
+ Name="SelectedBackground"
|
|
|
+ Fill="{TemplateBinding Control.Background}"
|
|
|
+ Opacity="0"
|
|
|
+ RadiusX="26"
|
|
|
+ RadiusY="26" />
|
|
|
+ <Rectangle
|
|
|
+ Name="Background"
|
|
|
+ Fill="{TemplateBinding Control.Background}"
|
|
|
+ Opacity="0"
|
|
|
+ RadiusX="26"
|
|
|
+ RadiusY="26" />
|
|
|
+ <ContentPresenter
|
|
|
+ Name="NormalText"
|
|
|
+ Margin="1,0,1,1"
|
|
|
+ HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
|
|
|
+ VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
|
|
|
+ TextElement.Foreground="#FFFFFF" />
|
|
|
</Grid>
|
|
|
<ControlTemplate.Triggers>
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
- <Setter TargetName="Background" Property="Opacity" Value="0.5"/>
|
|
|
+ <Setter TargetName="Background" Property="Opacity" Value="0.5" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="IsPressed" Value="True">
|
|
|
- <Setter TargetName="Background" Property="Opacity" Value="0.5"/>
|
|
|
+ <Setter TargetName="Background" Property="Opacity" Value="0.5" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="IsInactive" Value="True">
|
|
|
- <Setter TargetName="NormalText" Property="TextElement.Foreground" Value="#FF777777"/>
|
|
|
+ <Setter TargetName="NormalText" Property="TextElement.Foreground" Value="#FF777777" />
|
|
|
</Trigger>
|
|
|
</ControlTemplate.Triggers>
|
|
|
</ControlTemplate>
|
|
|
@@ -45,8 +48,11 @@
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
<Setter Property="Width" Value="80" />
|
|
|
</Style>
|
|
|
- <Style x:Key="{x:Type CalendarButton}" BasedOn="{StaticResource Calendar.CalendarButton}" TargetType="{x:Type CalendarButton}" />
|
|
|
- <!--天-->
|
|
|
+ <Style
|
|
|
+ x:Key="{x:Type CalendarButton}"
|
|
|
+ BasedOn="{StaticResource Calendar.CalendarButton}"
|
|
|
+ TargetType="{x:Type CalendarButton}" />
|
|
|
+ <!-- 天 -->
|
|
|
<Style x:Key="Calendar.DayButton" TargetType="{x:Type CalendarDayButton}">
|
|
|
<Setter Property="FontFamily" Value="Arial" />
|
|
|
<Setter Property="FontSize" Value="13" />
|
|
|
@@ -56,52 +62,62 @@
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="{x:Type CalendarDayButton}">
|
|
|
<Grid>
|
|
|
- <Ellipse Name="TodayBackground" Opacity="0"
|
|
|
- Fill="{DynamicResource Brush.Overlay12Percent}" />
|
|
|
- <Ellipse Name="SelectedBackground"
|
|
|
- Fill="{DynamicResource Brush.SignatureAccent}"
|
|
|
- Opacity="0" />
|
|
|
- <Border Background="{TemplateBinding Control.Background}"
|
|
|
- BorderBrush="{TemplateBinding Control.BorderBrush}"
|
|
|
- BorderThickness="{TemplateBinding Control.BorderThickness}" />
|
|
|
- <Ellipse Name="HighlightBackground"
|
|
|
- Fill="{DynamicResource Brush.SignatureAccent}"
|
|
|
- Opacity="0" />
|
|
|
- <ContentPresenter Name="NormalText" Margin="5,1,5,1"
|
|
|
- HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
|
|
|
- VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
|
|
|
- TextElement.Foreground="#FFFFFF" />
|
|
|
- <Path Name="Blackout" Margin="3"
|
|
|
- HorizontalAlignment="Stretch"
|
|
|
- VerticalAlignment="Stretch"
|
|
|
- Data="M8.1772461,11.029181 L10.433105,11.029181 L11.700684,12.801641 L12.973633,11.029181 L15.191895,11.029181 L12.844727,13.999395 L15.21875,17.060919 L12.962891,17.060919 L11.673828,15.256231 L10.352539,17.060919 L8.1396484,17.060919 L10.519043,14.042364"
|
|
|
- Fill="#FF000000" Opacity="0"
|
|
|
- RenderTransformOrigin="0.5,0.5"
|
|
|
- Stretch="Fill" />
|
|
|
+ <Ellipse
|
|
|
+ Name="TodayBackground"
|
|
|
+ Fill="{DynamicResource Brush.Overlay12Percent}"
|
|
|
+ Opacity="0" />
|
|
|
+ <Ellipse
|
|
|
+ Name="SelectedBackground"
|
|
|
+ Fill="{DynamicResource Brush.SignatureAccent}"
|
|
|
+ Opacity="0" />
|
|
|
+ <Border
|
|
|
+ Background="{TemplateBinding Control.Background}"
|
|
|
+ BorderBrush="{TemplateBinding Control.BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding Control.BorderThickness}" />
|
|
|
+ <Ellipse
|
|
|
+ Name="HighlightBackground"
|
|
|
+ Fill="{DynamicResource Brush.SignatureAccent}"
|
|
|
+ Opacity="0" />
|
|
|
+ <ContentPresenter
|
|
|
+ Name="NormalText"
|
|
|
+ Margin="5,1,5,1"
|
|
|
+ HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
|
|
|
+ VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
|
|
|
+ TextElement.Foreground="#FFFFFF" />
|
|
|
+ <Path
|
|
|
+ Name="Blackout"
|
|
|
+ Margin="3"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ VerticalAlignment="Stretch"
|
|
|
+ Data="M8.1772461,11.029181 L10.433105,11.029181 L11.700684,12.801641 L12.973633,11.029181 L15.191895,11.029181 L12.844727,13.999395 L15.21875,17.060919 L12.962891,17.060919 L11.673828,15.256231 L10.352539,17.060919 L8.1396484,17.060919 L10.519043,14.042364"
|
|
|
+ Fill="#FF000000"
|
|
|
+ Opacity="0"
|
|
|
+ RenderTransformOrigin="0.5,0.5"
|
|
|
+ Stretch="Fill" />
|
|
|
</Grid>
|
|
|
<ControlTemplate.Triggers>
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
|
- <Setter TargetName="HighlightBackground" Property="Opacity" Value="0"/>
|
|
|
- <Setter TargetName="NormalText" Property="Opacity" Value="0.35"/>
|
|
|
+ <Setter TargetName="HighlightBackground" Property="Opacity" Value="0" />
|
|
|
+ <Setter TargetName="NormalText" Property="Opacity" Value="0.35" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
- <Setter TargetName="HighlightBackground" Property="Opacity" Value="0.5"/>
|
|
|
+ <Setter TargetName="HighlightBackground" Property="Opacity" Value="0.5" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="IsPressed" Value="True">
|
|
|
- <Setter TargetName="HighlightBackground" Property="Opacity" Value="0.5"/>
|
|
|
+ <Setter TargetName="HighlightBackground" Property="Opacity" Value="0.5" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="IsSelected" Value="True">
|
|
|
- <Setter TargetName="SelectedBackground" Property="Opacity" Value="0.75"/>
|
|
|
+ <Setter TargetName="SelectedBackground" Property="Opacity" Value="0.75" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="IsInactive" Value="True">
|
|
|
- <Setter TargetName="NormalText" Property="TextElement.Foreground" Value="#FFFFFFFF"/>
|
|
|
+ <Setter TargetName="NormalText" Property="TextElement.Foreground" Value="#FFFFFFFF" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="IsToday" Value="True">
|
|
|
- <Setter TargetName="TodayBackground" Property="Opacity" Value="1"/>
|
|
|
- <Setter TargetName="NormalText" Property="TextElement.Foreground" Value="#FFFFFFFF"/>
|
|
|
+ <Setter TargetName="TodayBackground" Property="Opacity" Value="1" />
|
|
|
+ <Setter TargetName="NormalText" Property="TextElement.Foreground" Value="#FFFFFFFF" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="IsBlackedOut" Value="True">
|
|
|
- <Setter TargetName="Blackout" Property="Opacity" Value="0.2"/>
|
|
|
+ <Setter TargetName="Blackout" Property="Opacity" Value="0.2" />
|
|
|
</Trigger>
|
|
|
</ControlTemplate.Triggers>
|
|
|
</ControlTemplate>
|
|
|
@@ -110,7 +126,10 @@
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
<Setter Property="Width" Value="48" />
|
|
|
</Style>
|
|
|
- <Style x:Key="{x:Type CalendarDayButton}" BasedOn="{StaticResource Calendar.DayButton}" TargetType="{x:Type CalendarDayButton}" />
|
|
|
+ <Style
|
|
|
+ x:Key="{x:Type CalendarDayButton}"
|
|
|
+ BasedOn="{StaticResource Calendar.DayButton}"
|
|
|
+ TargetType="{x:Type CalendarDayButton}" />
|
|
|
|
|
|
<Style x:Key="Calendar.Item" TargetType="{x:Type CalendarItem}">
|
|
|
<Setter Property="Height" Value="400" />
|
|
|
@@ -121,11 +140,14 @@
|
|
|
<FrameworkTemplate.Resources>
|
|
|
<ResourceDictionary>
|
|
|
<DataTemplate x:Key="{x:Static CalendarItem.DayTitleTemplateResourceKey}">
|
|
|
- <TextBlock Margin="0,6,0,6" HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
- FontFamily="Arial"
|
|
|
- FontSize="16"
|
|
|
- Foreground="#FFFFFF"
|
|
|
- Text="{Binding}" />
|
|
|
+ <TextBlock
|
|
|
+ Margin="0,6,0,6"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FontFamily="Arial"
|
|
|
+ FontSize="16"
|
|
|
+ Foreground="#FFFFFF"
|
|
|
+ Text="{Binding}" />
|
|
|
</DataTemplate>
|
|
|
</ResourceDictionary>
|
|
|
</FrameworkTemplate.Resources>
|
|
|
@@ -135,21 +157,24 @@
|
|
|
<SolidColorBrush x:Key="DisabledColor" Color="#A5FFFFFF" />
|
|
|
</ResourceDictionary>
|
|
|
</FrameworkElement.Resources>
|
|
|
- <Border Padding="5" Background="{TemplateBinding Control.Background}"
|
|
|
- BorderBrush="{TemplateBinding Control.BorderBrush}"
|
|
|
- BorderThickness="{TemplateBinding Control.BorderThickness}">
|
|
|
+ <Border
|
|
|
+ Padding="5"
|
|
|
+ Background="{TemplateBinding Control.Background}"
|
|
|
+ BorderBrush="{TemplateBinding Control.BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding Control.BorderThickness}">
|
|
|
<Grid>
|
|
|
<FrameworkElement.Resources>
|
|
|
<ResourceDictionary>
|
|
|
<ControlTemplate x:Key="HeaderButtonTemplate" TargetType="{x:Type Button}">
|
|
|
<Grid Cursor="Hand">
|
|
|
- <ContentPresenter Name="buttonContent"
|
|
|
- Margin="1,4,1,9"
|
|
|
- HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
|
|
|
- VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
|
|
|
- Content="{TemplateBinding ContentControl.Content}"
|
|
|
- ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
|
|
|
- TextElement.Foreground="#FFFFFF" />
|
|
|
+ <ContentPresenter
|
|
|
+ Name="buttonContent"
|
|
|
+ Margin="1,4,1,9"
|
|
|
+ HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
|
|
|
+ VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
|
|
|
+ Content="{TemplateBinding ContentControl.Content}"
|
|
|
+ ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
|
|
|
+ TextElement.Foreground="#FFFFFF" />
|
|
|
</Grid>
|
|
|
<ControlTemplate.Triggers>
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
@@ -174,85 +199,99 @@
|
|
|
<RowDefinition Height="Auto" />
|
|
|
<RowDefinition Height="*" />
|
|
|
</Grid.RowDefinitions>
|
|
|
- <Button x:Name="PART_PreviousButton"
|
|
|
- Grid.Row="0"
|
|
|
- Grid.Column="0"
|
|
|
- HorizontalAlignment="Left"
|
|
|
- Background="Transparent">
|
|
|
- <Path Width="16" Height="16" StrokeThickness="2"
|
|
|
- Data="{StaticResource Icon.ChevronLeft}"
|
|
|
- Stretch="Uniform"
|
|
|
- Stroke="#FFFFFF"/>
|
|
|
+ <Button
|
|
|
+ x:Name="PART_PreviousButton"
|
|
|
+ Grid.Row="0"
|
|
|
+ Grid.Column="0"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ Background="Transparent">
|
|
|
+ <Path
|
|
|
+ Width="16"
|
|
|
+ Height="16"
|
|
|
+ Data="{StaticResource Icon.ChevronLeft}"
|
|
|
+ Stretch="Uniform"
|
|
|
+ Stroke="#FFFFFF"
|
|
|
+ StrokeThickness="2" />
|
|
|
<Button.Style>
|
|
|
<Style TargetType="{x:Type Button}">
|
|
|
- <Setter Property="Width" Value="48"/>
|
|
|
- <Setter Property="Height" Value="48"/>
|
|
|
- <Setter Property="HorizontalAlignment" Value="Left"/>
|
|
|
- <Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
- <Setter Property="Focusable" Value="False"/>
|
|
|
- <Setter Property="Foreground" Value="#FFFFFF"/>
|
|
|
- <Setter Property="Background" Value="{DynamicResource Brush.SecondaryButton}"/>
|
|
|
- <Setter Property="BorderThickness" Value="0"/>
|
|
|
- <Setter Property="Cursor" Value="Hand"/>
|
|
|
+ <Setter Property="Width" Value="48" />
|
|
|
+ <Setter Property="Height" Value="48" />
|
|
|
+ <Setter Property="HorizontalAlignment" Value="Left" />
|
|
|
+ <Setter Property="VerticalAlignment" Value="Center" />
|
|
|
+ <Setter Property="Focusable" Value="False" />
|
|
|
+ <Setter Property="Foreground" Value="#FFFFFF" />
|
|
|
+ <Setter Property="Background" Value="{DynamicResource Brush.SecondaryButton}" />
|
|
|
+ <Setter Property="BorderThickness" Value="0" />
|
|
|
+ <Setter Property="Cursor" Value="Hand" />
|
|
|
<Style.Triggers>
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
|
- <Setter Property="Background" Value="{DynamicResource Brush.SecondaryButtonDisabled}"/>
|
|
|
+ <Setter Property="Background" Value="{DynamicResource Brush.SecondaryButtonDisabled}" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
- <Setter Property="Background" Value="{DynamicResource Brush.SecondaryButtonMouseOver}"/>
|
|
|
+ <Setter Property="Background" Value="{DynamicResource Brush.SecondaryButtonMouseOver}" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="IsPressed" Value="True">
|
|
|
- <Setter Property="Background" Value="{DynamicResource Brush.SecondaryButtonPressed}"/>
|
|
|
+ <Setter Property="Background" Value="{DynamicResource Brush.SecondaryButtonPressed}" />
|
|
|
</Trigger>
|
|
|
</Style.Triggers>
|
|
|
</Style>
|
|
|
</Button.Style>
|
|
|
</Button>
|
|
|
- <Button Name="PART_HeaderButton"
|
|
|
- Grid.Row="0"
|
|
|
- Grid.Column="1"
|
|
|
- HorizontalAlignment="Center"
|
|
|
- VerticalAlignment="Center"
|
|
|
- Focusable="False"
|
|
|
- FontWeight="Bold"
|
|
|
- FontFamily="Arial"
|
|
|
- FontSize="16"
|
|
|
- Template="{StaticResource HeaderButtonTemplate}" />
|
|
|
- <Button x:Name="PART_NextButton"
|
|
|
- Grid.Row="0"
|
|
|
- Grid.Column="2"
|
|
|
- Background="Transparent">
|
|
|
- <Path Width="16" Height="16"
|
|
|
- StrokeThickness="2"
|
|
|
- Data="{StaticResource Icon.ChevronRight}"
|
|
|
- Stroke="#FFFFFF"
|
|
|
- Stretch="Uniform"/>
|
|
|
+ <Button
|
|
|
+ Name="PART_HeaderButton"
|
|
|
+ Grid.Row="0"
|
|
|
+ Grid.Column="1"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Focusable="False"
|
|
|
+ FontFamily="Arial"
|
|
|
+ FontSize="16"
|
|
|
+ FontWeight="Bold"
|
|
|
+ Template="{StaticResource HeaderButtonTemplate}" />
|
|
|
+ <Button
|
|
|
+ x:Name="PART_NextButton"
|
|
|
+ Grid.Row="0"
|
|
|
+ Grid.Column="2"
|
|
|
+ Background="Transparent">
|
|
|
+ <Path
|
|
|
+ Width="16"
|
|
|
+ Height="16"
|
|
|
+ Data="{StaticResource Icon.ChevronRight}"
|
|
|
+ Stretch="Uniform"
|
|
|
+ Stroke="#FFFFFF"
|
|
|
+ StrokeThickness="2" />
|
|
|
<Button.Style>
|
|
|
<Style TargetType="{x:Type Button}">
|
|
|
- <Setter Property="Width" Value="48"/>
|
|
|
- <Setter Property="Height" Value="48"/>
|
|
|
- <Setter Property="HorizontalAlignment" Value="Right"/>
|
|
|
- <Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
- <Setter Property="Focusable" Value="False"/>
|
|
|
- <Setter Property="Foreground" Value="{DynamicResource Brush.Text}"/>
|
|
|
- <Setter Property="Background" Value="{DynamicResource Brush.SecondaryButton}"/>
|
|
|
- <Setter Property="BorderThickness" Value="0"/>
|
|
|
- <Setter Property="Cursor" Value="Hand"/>
|
|
|
+ <Setter Property="Width" Value="48" />
|
|
|
+ <Setter Property="Height" Value="48" />
|
|
|
+ <Setter Property="HorizontalAlignment" Value="Right" />
|
|
|
+ <Setter Property="VerticalAlignment" Value="Center" />
|
|
|
+ <Setter Property="Focusable" Value="False" />
|
|
|
+ <Setter Property="Foreground" Value="{DynamicResource Brush.Text}" />
|
|
|
+ <Setter Property="Background" Value="{DynamicResource Brush.SecondaryButton}" />
|
|
|
+ <Setter Property="BorderThickness" Value="0" />
|
|
|
+ <Setter Property="Cursor" Value="Hand" />
|
|
|
<Style.Triggers>
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
|
- <Setter Property="Background" Value="{DynamicResource Brush.SecondaryButtonDisabled}"/>
|
|
|
+ <Setter Property="Background" Value="{DynamicResource Brush.SecondaryButtonDisabled}" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
- <Setter Property="Background" Value="{DynamicResource Brush.SecondaryButtonMouseOver}"/>
|
|
|
+ <Setter Property="Background" Value="{DynamicResource Brush.SecondaryButtonMouseOver}" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="IsPressed" Value="True">
|
|
|
- <Setter Property="Background" Value="{DynamicResource Brush.SecondaryButtonPressed}"/>
|
|
|
+ <Setter Property="Background" Value="{DynamicResource Brush.SecondaryButtonPressed}" />
|
|
|
</Trigger>
|
|
|
</Style.Triggers>
|
|
|
</Style>
|
|
|
</Button.Style>
|
|
|
</Button>
|
|
|
- <Grid Name="PART_MonthView" Row="1" ColumnSpan="3" Margin="6,-1,6,6" HorizontalAlignment="Center" Visibility="Visible">
|
|
|
+ <Grid
|
|
|
+ Name="PART_MonthView"
|
|
|
+ Margin="6,-1,6,6"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ ColumnSpan="3"
|
|
|
+ Row="1"
|
|
|
+ Visibility="Visible">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="*" />
|
|
|
<ColumnDefinition Width="*" />
|
|
|
@@ -272,7 +311,13 @@
|
|
|
<RowDefinition Height="*" />
|
|
|
</Grid.RowDefinitions>
|
|
|
</Grid>
|
|
|
- <Grid Name="PART_YearView" Row="1" ColumnSpan="3" Margin="6,-3,7,6" HorizontalAlignment="Center" Visibility="Hidden">
|
|
|
+ <Grid
|
|
|
+ Name="PART_YearView"
|
|
|
+ Margin="6,-3,7,6"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ ColumnSpan="3"
|
|
|
+ Row="1"
|
|
|
+ Visibility="Hidden">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="*" />
|
|
|
<ColumnDefinition Width="*" />
|
|
|
@@ -287,17 +332,26 @@
|
|
|
</Grid>
|
|
|
</Grid>
|
|
|
</Border>
|
|
|
- <Rectangle Name="PART_DisabledVisual" Opacity="0" RadiusX="2" RadiusY="2" Stretch="Fill" StrokeThickness="1" Visibility="Collapsed"
|
|
|
- Fill="{DynamicResource DisabledColor}"
|
|
|
- Stroke="{DynamicResource DisabledColor}"/>
|
|
|
+ <Rectangle
|
|
|
+ Name="PART_DisabledVisual"
|
|
|
+ Fill="{DynamicResource DisabledColor}"
|
|
|
+ Opacity="0"
|
|
|
+ RadiusX="2"
|
|
|
+ RadiusY="2"
|
|
|
+ Stretch="Fill"
|
|
|
+ Stroke="{DynamicResource DisabledColor}"
|
|
|
+ StrokeThickness="1"
|
|
|
+ Visibility="Collapsed" />
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
|
<VisualState x:Name="Normal" />
|
|
|
<VisualState x:Name="Disabled">
|
|
|
<Storyboard>
|
|
|
- <DoubleAnimation Storyboard.TargetName="PART_DisabledVisual"
|
|
|
- Storyboard.TargetProperty="Opacity"
|
|
|
- To="1" Duration="0" />
|
|
|
+ <DoubleAnimation
|
|
|
+ Storyboard.TargetName="PART_DisabledVisual"
|
|
|
+ Storyboard.TargetProperty="Opacity"
|
|
|
+ To="1"
|
|
|
+ Duration="0" />
|
|
|
</Storyboard>
|
|
|
</VisualState>
|
|
|
</VisualStateGroup>
|
|
|
@@ -307,11 +361,11 @@
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
|
<Setter TargetName="PART_DisabledVisual" Property="Visibility" Value="Visible" />
|
|
|
</Trigger>
|
|
|
- <DataTrigger Value="Year" Binding="{Binding DisplayMode, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Calendar}}}">
|
|
|
+ <DataTrigger Binding="{Binding DisplayMode, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Calendar}}}" Value="Year">
|
|
|
<Setter TargetName="PART_MonthView" Property="Visibility" Value="Hidden" />
|
|
|
<Setter TargetName="PART_YearView" Property="Visibility" Value="Visible" />
|
|
|
</DataTrigger>
|
|
|
- <DataTrigger Value="Decade" Binding="{Binding DisplayMode, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Calendar}}}">
|
|
|
+ <DataTrigger Binding="{Binding DisplayMode, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Calendar}}}" Value="Decade">
|
|
|
<Setter TargetName="PART_MonthView" Property="Visibility" Value="Hidden" />
|
|
|
<Setter TargetName="PART_YearView" Property="Visibility" Value="Visible" />
|
|
|
</DataTrigger>
|
|
|
@@ -321,7 +375,10 @@
|
|
|
</Setter>
|
|
|
<Setter Property="Width" Value="400" />
|
|
|
</Style>
|
|
|
- <Style x:Key="{x:Type CalendarItem}" BasedOn="{StaticResource Calendar.Item}" TargetType="{x:Type CalendarItem}" />
|
|
|
+ <Style
|
|
|
+ x:Key="{x:Type CalendarItem}"
|
|
|
+ BasedOn="{StaticResource Calendar.Item}"
|
|
|
+ TargetType="{x:Type CalendarItem}" />
|
|
|
|
|
|
<Style x:Key="Calendar.Primary" TargetType="{x:Type Calendar}">
|
|
|
<Setter Property="Background" Value="#161616" />
|
|
|
@@ -337,6 +394,9 @@
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
|
</Style>
|
|
|
- <Style x:Key="{x:Type Calendar}" BasedOn="{StaticResource Calendar.Primary}" TargetType="{x:Type Calendar}" />
|
|
|
+ <Style
|
|
|
+ x:Key="{x:Type Calendar}"
|
|
|
+ BasedOn="{StaticResource Calendar.Primary}"
|
|
|
+ TargetType="{x:Type Calendar}" />
|
|
|
|
|
|
</ResourceDictionary>
|