private static void OnMagnifierChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            UIElement target = d as UIElement;

            if (target == null)
                throw new ArgumentException("Magnifier can only be attached to a UIElement.");

            MagnifierManager manager = new MagnifierManager();
            manager.AttachToMagnifier(target, e.NewValue as Magnifier);
        }
예제 #2
0
        private static void OnMagnifierChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            UIElement target = d as UIElement;

            if (target == null)
            {
                throw new ArgumentException("Magnifier can only be attached to a UIElement.");
            }

            MagnifierManager manager = new MagnifierManager();

            manager.AttachToMagnifier(target, e.NewValue as Magnifier);
        }