public MagnifierAdorner(UIElement element, Magnifier magnifier)
     : base(element)
 {
     InputManager.Current.PostProcessInput += Current_PostProcessInput;
     _magnifier = magnifier;            
     UpdateViewBox();
     AddVisualChild(_magnifier);         
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 6
0
        private static void OnZoomFactorPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Magnifier m = (Magnifier)d;

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

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

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

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