private void OnBusyIndicatorAnimationAdapterSizeChanged(object sender, SizeChangedEventArgs e)
        {
            if (this.Animation == null)
            {
                return;
            }

            if (this.Animation.Children.Count == 0)
            {
                return;
            }

            FrameworkElement owner = ElementTreeHelper.FindVisualAncestor <RadBusyIndicator>(this);

            if (owner == null)
            {
                return;
            }

            BusyIndicatorAnimation animation = ElementTreeHelper.FindVisualAncestor <BusyIndicatorAnimation>(this);

            if (animation == null)
            {
                return;
            }

            Point animationLocation = ElementTreeHelper.SafeTransformPoint(animation, owner, new Point(-10, 0));

            this.AdaptAnimation(this.Animation, owner.RenderSize.Width + 10, animationLocation.X);
        }
        private static void OnIsActiveChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            BusyIndicatorAnimation typedSender = sender as BusyIndicatorAnimation;

            typedSender.OnIsActiveChanged(args);
        }