|
36 | 36 | Background="{TemplateBinding Background}"
|
37 | 37 | BorderBrush="{TemplateBinding BorderBrush}"
|
38 | 38 | BorderThickness="{TemplateBinding BorderThickness}"
|
| 39 | + CornerRadius="{TemplateBinding Controls:ControlsHelper.CornerRadius}" |
39 | 40 | SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
40 | 41 | <Controls:ContentControlEx x:Name="PART_ContentPresenter"
|
41 | 42 | Padding="{TemplateBinding Padding}"
|
|
83 | 84 | Background="{TemplateBinding Background}"
|
84 | 85 | BorderBrush="{TemplateBinding BorderBrush}"
|
85 | 86 | BorderThickness="{TemplateBinding BorderThickness}"
|
| 87 | + CornerRadius="{TemplateBinding Controls:ControlsHelper.CornerRadius}" |
86 | 88 | SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
87 | 89 | <Controls:ContentControlEx x:Name="PART_ContentPresenter"
|
88 | 90 | Padding="{TemplateBinding Padding}"
|
|
412 | 414 | Background="{TemplateBinding Background}"
|
413 | 415 | BorderBrush="{TemplateBinding BorderBrush}"
|
414 | 416 | BorderThickness="{TemplateBinding BorderThickness}"
|
415 |
| - CornerRadius="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(Controls:ControlsHelper.CornerRadius), Mode=OneWay}" |
| 417 | + CornerRadius="{TemplateBinding Controls:ControlsHelper.CornerRadius}" |
416 | 418 | SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
417 | 419 | <Border x:Name="DisabledVisualElement"
|
418 | 420 | Background="{DynamicResource MahApps.Brushes.Controls.Disabled}"
|
419 |
| - CornerRadius="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(Controls:ControlsHelper.CornerRadius), Mode=OneWay}" |
| 421 | + CornerRadius="{TemplateBinding Controls:ControlsHelper.CornerRadius}" |
420 | 422 | IsHitTestVisible="False"
|
421 | 423 | Opacity="0"
|
422 | 424 | SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
468 | 470 | <Setter Property="Template">
|
469 | 471 | <Setter.Value>
|
470 | 472 | <ControlTemplate TargetType="{x:Type ButtonBase}">
|
471 |
| - <Grid Background="{TemplateBinding Background}"> |
| 473 | + <Grid> |
472 | 474 | <Border x:Name="Background"
|
473 |
| - Background="{x:Null}" |
| 475 | + Background="{TemplateBinding Background}" |
474 | 476 | BorderBrush="{TemplateBinding BorderBrush}"
|
475 | 477 | BorderThickness="{TemplateBinding BorderThickness}"
|
| 478 | + CornerRadius="{TemplateBinding Controls:ControlsHelper.CornerRadius}" |
| 479 | + SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> |
| 480 | + <Border x:Name="DisabledVisualElement" |
| 481 | + Background="{DynamicResource MahApps.Brushes.Controls.Disabled}" |
| 482 | + CornerRadius="{TemplateBinding Controls:ControlsHelper.CornerRadius}" |
| 483 | + IsHitTestVisible="False" |
| 484 | + Opacity="0" |
476 | 485 | SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
477 |
| - <Rectangle x:Name="DisabledVisualElement" |
478 |
| - Fill="{DynamicResource MahApps.Brushes.Controls.Disabled}" |
479 |
| - IsHitTestVisible="False" |
480 |
| - Opacity="0" /> |
481 | 486 | <Controls:ContentControlEx x:Name="PART_ContentPresenter"
|
482 | 487 | Padding="{TemplateBinding Padding}"
|
483 | 488 | HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
550 | 555 | Background="{x:Null}"
|
551 | 556 | BorderBrush="{TemplateBinding BorderBrush}"
|
552 | 557 | BorderThickness="{TemplateBinding BorderThickness}"
|
| 558 | + CornerRadius="{TemplateBinding Controls:ControlsHelper.CornerRadius}" |
| 559 | + SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> |
| 560 | + <Border x:Name="DisabledVisualElement" |
| 561 | + Background="{DynamicResource MahApps.Brushes.Controls.Disabled}" |
| 562 | + CornerRadius="{TemplateBinding Controls:ControlsHelper.CornerRadius}" |
| 563 | + IsHitTestVisible="False" |
| 564 | + Opacity="0" |
553 | 565 | SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
554 |
| - <Rectangle x:Name="DisabledVisualElement" |
555 |
| - Fill="{DynamicResource MahApps.Brushes.Controls.Disabled}" |
556 |
| - IsHitTestVisible="False" |
557 |
| - Opacity="0" /> |
558 | 566 | <Controls:ContentControlEx x:Name="PART_ContentPresenter"
|
559 | 567 | Padding="{TemplateBinding Padding}"
|
560 | 568 | HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
707 | 715 | Background="{TemplateBinding Background}"
|
708 | 716 | BorderBrush="{TemplateBinding BorderBrush}"
|
709 | 717 | BorderThickness="{TemplateBinding BorderThickness}"
|
710 |
| - CornerRadius="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(Controls:ControlsHelper.CornerRadius), Mode=OneWay}" |
| 718 | + CornerRadius="{TemplateBinding Controls:ControlsHelper.CornerRadius}" |
711 | 719 | SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
712 | 720 | <Border x:Name="DisabledVisualElement"
|
713 | 721 | Background="{DynamicResource MahApps.Brushes.Controls.Disabled}"
|
714 |
| - CornerRadius="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(Controls:ControlsHelper.CornerRadius), Mode=OneWay}" |
| 722 | + CornerRadius="{TemplateBinding Controls:ControlsHelper.CornerRadius}" |
715 | 723 | IsHitTestVisible="False"
|
716 | 724 | Opacity="0"
|
717 | 725 | SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
789 | 797 | Background="{TemplateBinding Background}"
|
790 | 798 | BorderBrush="{TemplateBinding BorderBrush}"
|
791 | 799 | BorderThickness="{TemplateBinding BorderThickness}"
|
| 800 | + CornerRadius="{TemplateBinding Controls:ControlsHelper.CornerRadius}" |
792 | 801 | SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
793 | 802 |
|
794 | 803 | <Grid>
|
|
898 | 907 | Background="{TemplateBinding Background}"
|
899 | 908 | BorderBrush="{TemplateBinding BorderBrush}"
|
900 | 909 | BorderThickness="{TemplateBinding BorderThickness}"
|
| 910 | + CornerRadius="{TemplateBinding Controls:ControlsHelper.CornerRadius}" |
901 | 911 | SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
902 | 912 |
|
903 | 913 | <Grid>
|
|
1007 | 1017 | Background="{TemplateBinding Background}"
|
1008 | 1018 | BorderBrush="{TemplateBinding BorderBrush}"
|
1009 | 1019 | BorderThickness="{TemplateBinding BorderThickness}"
|
1010 |
| - CornerRadius="0" |
| 1020 | + CornerRadius="{TemplateBinding Controls:ControlsHelper.CornerRadius}" |
1011 | 1021 | SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
1012 | 1022 | <ContentPresenter x:Name="PART_ContentPresenter"
|
1013 | 1023 | Margin="{TemplateBinding Padding}"
|
|
0 commit comments