internal static void SetDecimalPlacesProperty(this DecimalPlacesProperty property, string propertyValue) { int?atLeast = null; int?atMost = null; var match = Patterns.DecimalPlaces.Match(propertyValue); if (match.Success) { atLeast = match.Groups[1].Value.ToNullableInteger(); atMost = match.Groups[2].Value.ToNullableInteger(); } property.Value.AtLeast = atLeast; property.Value.AtMost = atMost; }
set => SetValue(DecimalPlacesProperty, value);
set => SetValue(DecimalPlacesProperty, value == null ? null : (int?)int.Parse(value.ToString()));