|
29 | 29 | <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.SmartHint.xaml" /> |
30 | 30 | <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Snackbar.xaml" /> |
31 | 31 | </ResourceDictionary.MergedDictionaries> |
32 | | - |
| 32 | + |
33 | 33 | <!-- set up default styles for our custom Material Design in XAML Toolkit controls --> |
34 | 34 | <Style TargetType="{x:Type local:Clock}" BasedOn="{StaticResource MaterialDesignClock}" /> |
35 | 35 | <Style TargetType="{x:Type local:PopupBox}" BasedOn="{StaticResource MaterialDesignPopupBox}" /> |
36 | 36 | <Style TargetType="{x:Type local:TimePicker}" BasedOn="{StaticResource MaterialDesignTimePicker}" /> |
37 | | - |
| 37 | + |
38 | 38 | <converters:BrushToRadialGradientBrushConverter x:Key="BrushToRadialGradientBrushConverter" /> |
39 | 39 | <converters:DrawerOffsetConverter x:Key="DrawerOffsetConverter" /> |
40 | 40 |
|
|
46 | 46 | <Setter Property="VerticalAlignment" Value="Stretch" /> |
47 | 47 | <Setter Property="Background" Value="Transparent" /> |
48 | 48 | <Setter Property="IsTabStop" Value="False" /> |
49 | | - <Setter Property="ClipToBounds" Value="{Binding RelativeSource={RelativeSource Self}, Path=(local:RippleAssist.ClipToBounds)}" /> |
| 49 | + <Setter Property="ClipToBounds" Value="{Binding RelativeSource={RelativeSource Self}, Path=(local:RippleAssist.ClipToBounds)}" /> |
50 | 50 | <Setter Property="Feedback" Value="{Binding RelativeSource={RelativeSource Self}, Path=(local:RippleAssist.Feedback)}" /> |
51 | 51 | <Setter Property="Template"> |
52 | 52 | <Setter.Value> |
|
120 | 120 | <SineEase EasingMode="EaseOut" /> |
121 | 121 | </EasingDoubleKeyFrame.EasingFunction> |
122 | 122 | </EasingDoubleKeyFrame> |
123 | | - </DoubleAnimationUsingKeyFrames> |
| 123 | + </DoubleAnimationUsingKeyFrames> |
124 | 124 | </Storyboard> |
125 | | - </VisualTransition> |
126 | | - </VisualStateGroup.Transitions> |
| 125 | + </VisualTransition> |
| 126 | + </VisualStateGroup.Transitions> |
127 | 127 | <VisualState x:Name="Normal"> |
128 | 128 | <Storyboard> |
129 | 129 | <DoubleAnimation Storyboard.TargetProperty="ScaleX" Storyboard.TargetName="ScaleTransform" To="0"/> |
|
179 | 179 | </Setter.Value> |
180 | 180 | </Setter> |
181 | 181 | </Style> |
182 | | - |
| 182 | + |
183 | 183 | <Style TargetType="{x:Type local:Underline}"> |
184 | 184 | <Setter Property="Background" Value="{DynamicResource PrimaryHueMidBrush}"/> |
185 | 185 | <Setter Property="SnapsToDevicePixels" Value="True"/> |
|
404 | 404 | </Style> |
405 | 405 |
|
406 | 406 | <Style TargetType="{x:Type local:ColorZone}"> |
| 407 | + <Style.Resources> |
| 408 | + <converters:ShadowEdgeConverter x:Key="ShadowEdgeConverter" /> |
| 409 | + </Style.Resources> |
407 | 410 | <Setter Property="Background" Value="{DynamicResource MaterialDesignPaper}" /> |
408 | 411 | <Setter Property="Foreground" Value="{DynamicResource MaterialDesignBody}" /> |
409 | 412 | <Setter Property="HorizontalContentAlignment" Value="Stretch" /> |
410 | 413 | <Setter Property="VerticalContentAlignment" Value="Stretch" /> |
411 | 414 | <Setter Property="VerticalAlignment" Value="Top" /> |
412 | | - <Setter Property="IsTabStop" Value="False" /> |
| 415 | + <Setter Property="IsTabStop" Value="False" /> |
413 | 416 | <Setter Property="Template"> |
414 | 417 | <Setter.Value> |
415 | 418 | <ControlTemplate TargetType="{x:Type local:ColorZone}"> |
416 | 419 | <Grid Background="Transparent"> |
| 420 | + <Grid.OpacityMask> |
| 421 | + <MultiBinding Converter="{StaticResource ShadowEdgeConverter}"> |
| 422 | + <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="ActualWidth"/> |
| 423 | + <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="ActualHeight"/> |
| 424 | + <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="(local:ShadowAssist.ShadowDepth)" /> |
| 425 | + <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="(local:ShadowAssist.ShadowEdges)" /> |
| 426 | + </MultiBinding> |
| 427 | + </Grid.OpacityMask> |
417 | 428 | <AdornerDecorator CacheMode="{Binding RelativeSource={RelativeSource Self}, Path=(local:ShadowAssist.CacheMode)}"> |
418 | 429 | <Border Background="{TemplateBinding Background}" |
419 | | - CornerRadius="{TemplateBinding CornerRadius}" |
| 430 | + CornerRadius="{TemplateBinding CornerRadius}" |
420 | 431 | Effect="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(local:ShadowAssist.ShadowDepth), Converter={x:Static converters:ShadowConverter.Instance}}"> |
421 | 432 | </Border> |
422 | 433 | </AdornerDecorator> |
423 | 434 | <Border Background="{TemplateBinding Background}" |
424 | 435 | BorderBrush="{TemplateBinding BorderBrush}" |
425 | 436 | BorderThickness="{TemplateBinding BorderThickness}" |
426 | 437 | CornerRadius="{TemplateBinding CornerRadius}" |
427 | | - ClipToBounds="True" > |
| 438 | + ClipToBounds="True"> |
428 | 439 | <ContentPresenter Content="{TemplateBinding Content}" |
429 | 440 | ContentTemplate="{TemplateBinding ContentTemplate}" |
430 | 441 | TextElement.Foreground="{TemplateBinding Foreground}" |
|
988 | 999 | </ControlTemplate> |
989 | 1000 | </Setter.Value> |
990 | 1001 | </Setter> |
991 | | - </Style> |
| 1002 | + </Style> |
992 | 1003 |
|
993 | 1004 | <Style TargetType="{x:Type local:PackIcon}"> |
994 | 1005 | <Setter Property="Height" Value="16" /> |
|
1015 | 1026 | </Setter> |
1016 | 1027 | </Style> |
1017 | 1028 |
|
1018 | | - <Style TargetType="{x:Type transitions:Transitioner}"> |
| 1029 | + <Style TargetType="{x:Type transitions:Transitioner}"> |
1019 | 1030 | <Setter Property="ClipToBounds" Value="True" /> |
1020 | 1031 | <Setter Property="ItemsPanel"> |
1021 | 1032 | <Setter.Value> |
|
0 commit comments