Skip to content

Commit 2c7e8c2

Browse files
Fixes #4166 - Missing Callback for Multiple Properties in ConstrainedBox
1 parent ee93385 commit 2c7e8c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Microsoft.Toolkit.Uwp.UI.Controls.Primitives/ConstrainedBox/ConstrainedBox.Properties.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public int MultipleX
6161
/// Identifies the <see cref="MultipleX"/> property.
6262
/// </summary>
6363
public static readonly DependencyProperty MultipleXProperty =
64-
DependencyProperty.Register(nameof(MultipleX), typeof(int), typeof(ConstrainedBox), new PropertyMetadata(null));
64+
DependencyProperty.Register(nameof(MultipleX), typeof(int), typeof(ConstrainedBox), new PropertyMetadata(null, ConstraintPropertyChanged));
6565

6666
/// <summary>
6767
/// Gets or sets the integer multiple that the height of the panel should be floored to. Default is null (no snap).
@@ -76,7 +76,7 @@ public int MultipleY
7676
/// Identifies the <see cref="MultipleY"/> property.
7777
/// </summary>
7878
public static readonly DependencyProperty MultipleYProperty =
79-
DependencyProperty.Register(nameof(MultipleY), typeof(int), typeof(ConstrainedBox), new PropertyMetadata(null));
79+
DependencyProperty.Register(nameof(MultipleY), typeof(int), typeof(ConstrainedBox), new PropertyMetadata(null, ConstraintPropertyChanged));
8080

8181
/// <summary>
8282
/// Gets or sets aspect Ratio to use for the contents of the Panel (after scaling).

0 commit comments

Comments
 (0)