|
354 | 354 | <Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
355 | 355 | <Setter Property="VerticalAlignment" Value="Top" />
|
356 | 356 | <Setter Property="IsTabStop" Value="False" />
|
357 |
| - <Setter Property="Effect" Value="{Binding RelativeSource={RelativeSource Self}, Path=(local:ShadowAssist.ShadowDepth), Converter={x:Static converters:ShadowConverter.Instance}}" /> |
358 | 357 | <Setter Property="Template">
|
359 | 358 | <Setter.Value>
|
360 | 359 | <ControlTemplate TargetType="{x:Type local:ColorZone}">
|
361 |
| - <Border Background="{TemplateBinding Background}" |
362 |
| - BorderBrush="{TemplateBinding BorderBrush}" |
363 |
| - BorderThickness="{TemplateBinding BorderThickness}" |
364 |
| - CornerRadius="{TemplateBinding CornerRadius}" |
365 |
| - ClipToBounds="True" |
366 |
| - > |
367 |
| - <ContentPresenter Content="{TemplateBinding Content}" |
368 |
| - ContentTemplate="{TemplateBinding ContentTemplate}" |
369 |
| - TextElement.Foreground="{TemplateBinding Foreground}" |
370 |
| - RecognizesAccessKey="True" |
371 |
| - Cursor="{TemplateBinding Cursor}" |
372 |
| - Margin="{TemplateBinding Padding}" |
373 |
| - HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
374 |
| - VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> |
375 |
| - </Border> |
| 360 | + <Grid Background="Transparent"> |
| 361 | + <Border Background="{TemplateBinding Background}" |
| 362 | + CornerRadius="{TemplateBinding CornerRadius}" |
| 363 | + Effect="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(local:ShadowAssist.ShadowDepth), Converter={x:Static converters:ShadowConverter.Instance}}" /> |
| 364 | + <Border Background="{TemplateBinding Background}" |
| 365 | + BorderBrush="{TemplateBinding BorderBrush}" |
| 366 | + BorderThickness="{TemplateBinding BorderThickness}" |
| 367 | + CornerRadius="{TemplateBinding CornerRadius}" |
| 368 | + ClipToBounds="True" > |
| 369 | + <ContentPresenter Content="{TemplateBinding Content}" |
| 370 | + ContentTemplate="{TemplateBinding ContentTemplate}" |
| 371 | + TextElement.Foreground="{TemplateBinding Foreground}" |
| 372 | + RecognizesAccessKey="True" |
| 373 | + Cursor="{TemplateBinding Cursor}" |
| 374 | + Margin="{TemplateBinding Padding}" |
| 375 | + HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 376 | + VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> |
| 377 | + </Border> |
| 378 | + </Grid> |
376 | 379 | </ControlTemplate>
|
377 | 380 | </Setter.Value>
|
378 | 381 | </Setter>
|
|
532 | 535 | </ResourceDictionary>
|
533 | 536 | </Popup.Resources>
|
534 | 537 | <local:Card Margin="22"
|
535 |
| - Effect="{DynamicResource MaterialDesignShadowDepth5}" |
| 538 | + local:ShadowAssist.ShadowDepth="Depth5" |
536 | 539 | UniformCornerRadius="4"
|
537 | 540 | TextElement.Foreground="{DynamicResource MaterialDesignBody}"
|
538 | 541 | TextElement.FontWeight="Medium"
|
|
0 commit comments