|
7 | 7 | <Setter Property="MinWidth" Value="5"/>
|
8 | 8 | <Setter Property="MinHeight" Value="5"/>
|
9 | 9 | <Setter Property="FontSize" Value="12"/>
|
| 10 | + <Setter Property="Cursor" Value="Hand"/> |
10 | 11 | <Setter Property="Background" Value="Transparent"/>
|
11 | 12 | <Setter Property="Margin" Value="2"/>
|
12 | 13 | <Setter Property="Width" Value="48" />
|
|
86 | 87 | <VisualTransition GeneratedDuration="0"/>
|
87 | 88 | </VisualStateGroup.Transitions>
|
88 | 89 | <VisualState x:Name="Active"/>
|
89 |
| - <VisualState x:Name="Inactive"> |
90 |
| - <Storyboard> |
91 |
| - <!--ColorAnimation Duration="0" To="#FF777777" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="NormalText"/--> |
92 |
| - </Storyboard> |
93 |
| - </VisualState> |
94 |
| - </VisualStateGroup> |
95 |
| - <VisualStateGroup x:Name="DayStates"> |
96 |
| - <VisualStateGroup.Transitions> |
97 |
| - <VisualTransition GeneratedDuration="0"/> |
98 |
| - </VisualStateGroup.Transitions> |
99 |
| - <VisualState x:Name="RegularDay"/> |
100 |
| - <VisualState x:Name="Today"> |
101 |
| - <Storyboard> |
102 |
| - <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="TodayBackground"/> |
103 |
| - <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground)" Storyboard.TargetName="NormalText"> |
104 |
| - <DiscreteObjectKeyFrame Value="{DynamicResource PrimaryHueLightForegroundBrush}" KeyTime="0" /> |
105 |
| - </ObjectAnimationUsingKeyFrames> |
106 |
| - </Storyboard> |
107 |
| - </VisualState> |
108 |
| - </VisualStateGroup> |
109 |
| - <VisualStateGroup x:Name="BlackoutDayStates"> |
110 |
| - <VisualStateGroup.Transitions> |
111 |
| - <VisualTransition GeneratedDuration="0"/> |
112 |
| - </VisualStateGroup.Transitions> |
113 |
| - <VisualState x:Name="NormalDay"/> |
114 |
| - <VisualState x:Name="BlackoutDay"> |
115 |
| - <Storyboard> |
116 |
| - <DoubleAnimation Duration="0" To=".2" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Blackout"/> |
117 |
| - </Storyboard> |
118 |
| - </VisualState> |
| 90 | + <VisualState x:Name="Inactive" /> |
119 | 91 | </VisualStateGroup>
|
120 | 92 | </VisualStateManager.VisualStateGroups>
|
121 |
| - <Ellipse x:Name="TodayBackground" Fill="{DynamicResource PrimaryHueLightBrush}" Opacity="0" /> |
122 |
| - <Ellipse x:Name="SelectedBackground" Fill="{DynamicResource PrimaryHueMidBrush}" Opacity="0" /> |
123 |
| - <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"/> |
124 |
| - <Ellipse x:Name="HighlightBackground" Fill="{DynamicResource PrimaryHueDarkBrush}" Opacity="0" /> |
| 93 | + <Ellipse x:Name="TodayBackground" |
| 94 | + Fill="{DynamicResource PrimaryHueLightBrush}" |
| 95 | + Opacity="0" /> |
| 96 | + <Ellipse x:Name="SelectedBackground" |
| 97 | + Fill="{DynamicResource PrimaryHueMidBrush}" |
| 98 | + Opacity="0" /> |
| 99 | + <Border BorderBrush="{TemplateBinding BorderBrush}" |
| 100 | + BorderThickness="{TemplateBinding BorderThickness}" |
| 101 | + Background="{TemplateBinding Background}" /> |
| 102 | + <Ellipse x:Name="HighlightBackground" |
| 103 | + Fill="{DynamicResource PrimaryHueDarkBrush}" |
| 104 | + Opacity="0" /> |
125 | 105 | <ContentPresenter x:Name="NormalText"
|
126 | 106 | TextElement.Foreground="{TemplateBinding Foreground}"
|
127 | 107 | HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
128 | 108 | Margin="5,1,5,1"
|
129 | 109 | VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
130 |
| - <Path x:Name="Blackout" |
131 |
| - Fill="#FF000000" |
132 |
| - HorizontalAlignment="Stretch" VerticalAlignment="Stretch" |
133 |
| - Margin="3" |
134 |
| - Opacity="0" |
135 |
| - RenderTransformOrigin="0.5,0.5" |
136 |
| - Stretch="Fill" |
137 |
| - 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 z" /> |
138 |
| - <Ellipse x:Name="DayButtonFocusVisual" Stroke="{DynamicResource PrimaryHueDarkBrush}" Opacity="0" Visibility="Collapsed" StrokeThickness="1"/> |
| 110 | + <Ellipse x:Name="DayButtonFocusVisual" |
| 111 | + Stroke="{DynamicResource PrimaryHueDarkBrush}" |
| 112 | + Opacity="0" |
| 113 | + Visibility="Collapsed" |
| 114 | + StrokeThickness="1" /> |
139 | 115 | </Grid>
|
140 | 116 | </ControlTemplate>
|
141 | 117 | </Setter.Value>
|
142 | 118 | </Setter>
|
| 119 | + <Style.Triggers> |
| 120 | + <Trigger Property="IsInactive" |
| 121 | + Value="True"> |
| 122 | + <Setter Property="MinHeight" |
| 123 | + Value="0" /> |
| 124 | + <Setter Property="MaxHeight" |
| 125 | + Value="0" /> |
| 126 | + </Trigger> |
| 127 | + </Style.Triggers> |
143 | 128 | </Style>
|
144 | 129 |
|
145 | 130 | <Style x:Key="MaterialDesignCalendarDayButton" TargetType="{x:Type CalendarDayButton}">
|
146 | 131 | <Setter Property="MinWidth" Value="5"/>
|
147 | 132 | <Setter Property="MinHeight" Value="5"/>
|
148 | 133 | <Setter Property="FontSize" Value="12"/>
|
| 134 | + <Setter Property="Cursor" Value="Hand" /> |
149 | 135 | <Setter Property="Margin" Value="2"/>
|
150 | 136 | <Setter Property="Width" Value="34" />
|
151 | 137 | <Setter Property="Height" Value="34" />
|
|
224 | 210 | <VisualTransition GeneratedDuration="0"/>
|
225 | 211 | </VisualStateGroup.Transitions>
|
226 | 212 | <VisualState x:Name="Active"/>
|
227 |
| - <VisualState x:Name="Inactive"> |
228 |
| - <Storyboard> |
229 |
| - <DoubleAnimation Duration="0" To="0.2" Storyboard.TargetProperty="Opacity"/> |
230 |
| - </Storyboard> |
231 |
| - </VisualState> |
| 213 | + <VisualState x:Name="Inactive"/> |
232 | 214 | </VisualStateGroup>
|
233 | 215 | <VisualStateGroup x:Name="DayStates">
|
234 | 216 | <VisualStateGroup.Transitions>
|
|
251 | 233 | <VisualState x:Name="NormalDay"/>
|
252 | 234 | <VisualState x:Name="BlackoutDay">
|
253 | 235 | <Storyboard>
|
254 |
| - <DoubleAnimation Duration="0" To=".2" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Blackout"/> |
| 236 | + <DoubleAnimation Duration="0" |
| 237 | + To="0" |
| 238 | + Storyboard.TargetProperty="Opacity" |
| 239 | + Storyboard.TargetName="HighlightingBorder"/> |
| 240 | + <DoubleAnimation Duration="0" |
| 241 | + To="0.38" |
| 242 | + Storyboard.TargetProperty="Opacity" |
| 243 | + Storyboard.TargetName="NormalText" /> |
255 | 244 | </Storyboard>
|
256 | 245 | </VisualState>
|
257 | 246 | </VisualStateGroup>
|
258 | 247 | </VisualStateManager.VisualStateGroups>
|
259 |
| - <Ellipse x:Name="TodayBackground" Fill="{DynamicResource PrimaryHueLightBrush}" Opacity="0" /> |
260 |
| - <Ellipse x:Name="SelectedBackground" Fill="{DynamicResource PrimaryHueMidBrush}" Opacity="0" /> |
261 |
| - <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"/> |
262 |
| - <Ellipse x:Name="HighlightBackground" Fill="{DynamicResource PrimaryHueDarkBrush}" Opacity="0" /> |
263 |
| - <ContentPresenter x:Name="NormalText" TextElement.Foreground="{TemplateBinding Foreground}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="5,1,5,1" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> |
264 |
| - <Path x:Name="Blackout" |
265 |
| - 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 z" |
266 |
| - Fill="#FF000000" |
267 |
| - HorizontalAlignment="Stretch" VerticalAlignment="Stretch" |
268 |
| - Margin="3" |
269 |
| - Opacity="0" |
270 |
| - RenderTransformOrigin="0.5,0.5" |
271 |
| - Stretch="Fill"/> |
272 |
| - <Ellipse x:Name="DayButtonFocusVisual" Stroke="{DynamicResource PrimaryHueDarkBrush}" Opacity="0" Visibility="Collapsed" StrokeThickness="1"/> |
| 248 | + <Ellipse x:Name="TodayBackground" |
| 249 | + Fill="{DynamicResource PrimaryHueLightBrush}" |
| 250 | + Opacity="0" /> |
| 251 | + <Ellipse x:Name="SelectedBackground" |
| 252 | + Fill="{DynamicResource PrimaryHueMidBrush}" |
| 253 | + Opacity="0" /> |
| 254 | + <Border BorderBrush="{TemplateBinding BorderBrush}" |
| 255 | + BorderThickness="{TemplateBinding BorderThickness}" |
| 256 | + Background="{TemplateBinding Background}"/> |
| 257 | + <Border x:Name="HighlightingBorder" |
| 258 | + Opacity="1"> |
| 259 | + <Ellipse x:Name="HighlightBackground" |
| 260 | + Fill="{DynamicResource PrimaryHueDarkBrush}" |
| 261 | + Opacity="0"/> |
| 262 | + </Border> |
| 263 | + <ContentPresenter x:Name="NormalText" |
| 264 | + TextElement.Foreground="{TemplateBinding Foreground}" |
| 265 | + HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 266 | + Margin="5,1,5,1" |
| 267 | + VerticalAlignment="{TemplateBinding VerticalContentAlignment}" /> |
| 268 | + <Ellipse x:Name="DayButtonFocusVisual" |
| 269 | + Stroke="{DynamicResource PrimaryHueDarkBrush}" |
| 270 | + Opacity="0" |
| 271 | + Visibility="Collapsed" |
| 272 | + StrokeThickness="1"/> |
273 | 273 | </Grid>
|
274 | 274 | </ControlTemplate>
|
275 | 275 | </Setter.Value>
|
276 | 276 | </Setter>
|
| 277 | + <Style.Triggers> |
| 278 | + <Trigger Property="IsInactive" |
| 279 | + Value="True"> |
| 280 | + <Setter Property="MinHeight" |
| 281 | + Value="0" /> |
| 282 | + <Setter Property="MaxHeight" |
| 283 | + Value="0" /> |
| 284 | + </Trigger> |
| 285 | + <Trigger Property="IsBlackedOut" |
| 286 | + Value="True"> |
| 287 | + <Setter Property="Cursor" |
| 288 | + Value="No" /> |
| 289 | + </Trigger> |
| 290 | + </Style.Triggers> |
277 | 291 | </Style>
|
278 | 292 |
|
279 | 293 | <Style x:Key="MaterialDesignCalendarItemPortrait" TargetType="{x:Type CalendarItem}">
|
|
0 commit comments