Example #1
0
        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;
        }
Example #2
0
 set => SetValue(DecimalPlacesProperty, value);
Example #3
0
 set => SetValue(DecimalPlacesProperty, value == null ? null : (int?)int.Parse(value.ToString()));