You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
The MultipleX and MultipleY dependency properties on ConstrainedBox do not register the ConstraintPropertyChanged callback, meaning that if they are changed, the layout isn't updated until something else invalidates it
Can this be reproduced in the Sample App? (Either in a sample as-is or with new XAML pasted in the editor.) If so, please provide custom XAML or steps to reproduce. If not, let us know why it can't be reproduced (e.g. more complex setup, environment, dependencies, etc...)
Steps to reproduce the behavior:
Use the constrained box control somewhere.
Modify MultipleX or MultipleY at runtime.
Observe that changes do not apply until a manual layout invalidation.
Describe the bug
The MultipleX and MultipleY dependency properties on ConstrainedBox do not register the ConstraintPropertyChanged callback, meaning that if they are changed, the layout isn't updated until something else invalidates it
For example ScaleY:
WindowsCommunityToolkit/Microsoft.Toolkit.Uwp.UI.Controls.Primitives/ConstrainedBox/ConstrainedBox.Properties.cs
Lines 48 to 49 in ee93385
Compared to MultipleY:
WindowsCommunityToolkit/Microsoft.Toolkit.Uwp.UI.Controls.Primitives/ConstrainedBox/ConstrainedBox.Properties.cs
Lines 78 to 79 in ee93385
Steps to Reproduce
Steps to reproduce the behavior:
Expected behavior
The changes should apply instantly
Screenshots
N/A
Environment
N/A, bug found while reading the source code.