/// <summary>
        /// ContentProperty property changed handler.
        /// </summary>
        /// <param name="d">ButtonSpinner that changed its Content.</param>
        /// <param name="e">Event arguments.</param>
        private static void OnContentPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SpinnerButton source = d as SpinnerButton;

            source.OnContentChanged(e.OldValue, e.NewValue);
        }
        private static void AllowSpinPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SpinnerButton source = d as SpinnerButton;

            source.OnAllowSpinChanged((bool)e.OldValue, (bool)e.NewValue);
        }