/// <summary>Helper for setting <see cref="AllowSpinnersProperty"/> on <paramref name="element"/>.</summary>
        /// <param name="element"><see cref="UIElement"/> to set <see cref="AllowSpinnersProperty"/> on.</param>
        /// <param name="value">AllowSpinners property value.</param>
        public static void SetAllowSpinners(this UIElement element, bool value)
        {
            if (element is null)
            {
                throw new ArgumentNullException(nameof(element));
            }

            element.SetValue(AllowSpinnersProperty, BooleanBoxes.Box(value));
        }
        /// <summary>Helper for setting <see cref="CanValueBeNullProperty"/> on <paramref name="element"/>.</summary>
        /// <param name="element"><see cref="UIElement"/> to set <see cref="CanValueBeNullProperty"/> on.</param>
        /// <param name="value">CanValueBeNull property value.</param>
        public static void SetCanValueBeNull(this UIElement element, bool value)
        {
            if (element is null)
            {
                throw new ArgumentNullException(nameof(element));
            }

            element.SetValue(CanValueBeNullProperty, BooleanBoxes.Box(value));
        }
 public static void SetAllowSpinners(this UIElement element, bool value) => element.SetValue(AllowSpinnersProperty, BooleanBoxes.Box(value));
 public static void SetCanValueBeNull(this UIElement element, bool value) => element.SetValue(CanValueBeNullProperty, BooleanBoxes.Box(value));