public MagnifierAdorner(UIElement element, Magnifier magnifier)
     : base(element)
 {
     InputManager.Current.PostProcessInput += Current_PostProcessInput;
     _magnifier = magnifier;            
     UpdateViewBox();
     AddVisualChild(_magnifier);         
 }
Example #2
0
 public MagnifierAdorner(UIElement element, Magnifier magnifier)
     : base(element)
 {
     InputManager.Current.PostProcessInput += Current_PostProcessInput;
     _magnifier = magnifier;
     UpdateViewBox();
     AddVisualChild(_magnifier);
 }
        private void AttachToMagnifier(UIElement element, Magnifier magnifier)
        {
            _element = element;
            _element.MouseEnter += Element_MouseEnter;
            _element.MouseLeave += Element_MouseLeave;

            magnifier.Target = _element;

            _adorner = new MagnifierAdorner(_element, magnifier);
        }
Example #4
0
        private void AttachToMagnifier(UIElement element, Magnifier magnifier)
        {
            _element             = element;
            _element.MouseEnter += Element_MouseEnter;
            _element.MouseLeave += Element_MouseLeave;

            magnifier.Target = _element;

            _adorner = new MagnifierAdorner(_element, magnifier);
        }
 public static void SetMagnifier(UIElement element, Magnifier value)
 {
     element.SetValue(CurrentProperty, value);
 }
Example #6
0
        private static void OnZoomFactorPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Magnifier m = (Magnifier)d;

            m.OnZoomFactorChanged(e);
        }
Example #7
0
        private static void OnRadiusPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Magnifier m = (Magnifier)d;

            m.OnRadiusChanged(e);
        }
Example #8
0
        private static object OnCoerceZoomFactorProperty(DependencyObject d, object value)
        {
            Magnifier m = (Magnifier)d;

            return(m.OnCoerceZoomFactor(value));
        }
Example #9
0
 public static void SetMagnifier(UIElement element, Magnifier value)
 {
     element.SetValue(CurrentProperty, value);
 }
Example #10
0
        private static void OnFrameTypeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Magnifier m = (Magnifier)d;

            m.OnFrameTypeChanged((FrameType)e.OldValue, (FrameType)e.NewValue);
        }