File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -344,6 +344,21 @@ public double PopupVerticalOffset
344
344
set => SetValue ( PopupVerticalOffsetProperty , value ) ;
345
345
}
346
346
347
+ /// <summary>
348
+ /// Get or sets the corner radius of the popup card.
349
+ /// </summary>
350
+ public static readonly DependencyProperty PopupUniformCornerRadiusProperty = DependencyProperty . Register (
351
+ nameof ( PopupUniformCornerRadius ) , typeof ( double ) , typeof ( PopupBox ) , new PropertyMetadata ( default ( double ) ) ) ;
352
+
353
+ /// <summary>
354
+ /// Get or sets the corner radius of the popup card.
355
+ /// </summary>
356
+ public double PopupUniformCornerRadius
357
+ {
358
+ get => ( double ) GetValue ( PopupUniformCornerRadiusProperty ) ;
359
+ set => SetValue ( PopupUniformCornerRadiusProperty , value ) ;
360
+ }
361
+
347
362
/// <summary>
348
363
/// Framework use. Provides the method used to position the popup.
349
364
/// </summary>
Original file line number Diff line number Diff line change 75
75
<Setter Property =" TextElement.FontWeight" Value =" Normal" />
76
76
<Setter Property =" Padding" Value =" 0 8 0 8" />
77
77
<Setter Property =" Focusable" Value =" True" />
78
+ <Setter Property =" PopupUniformCornerRadius" Value =" 2" />
78
79
<Setter Property =" Template" >
79
80
<Setter .Value>
80
81
<ControlTemplate TargetType =" {x:Type wpf:PopupBox}" >
114
115
Foreground =" {DynamicResource MaterialDesignBody}"
115
116
Padding =" {TemplateBinding Padding}"
116
117
RenderOptions.ClearTypeHint=" Enabled"
118
+ UniformCornerRadius =" {TemplateBinding PopupUniformCornerRadius}"
117
119
Margin =" 5" >
118
120
<wpf : Card .Resources>
119
121
<Style TargetType =" Button" BasedOn =" {StaticResource MaterialDesignPopupBoxButton}" />
You can’t perform that action at this time.
0 commit comments