public MagnifierAdorner(UIElement element, Magnifier magnifier)
     : base(element)
 {
     InputManager.Current.PostProcessInput += Current_PostProcessInput;
     _magnifier = magnifier;
     UpdateViewBox();
     AddVisualChild(_magnifier);
 }
 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);
        }
Example #5
0
        public MagnifierAdorner(UIElement element, Magnifier magnifier)
            : base(element)
        {
            _magnifier = magnifier;
            UpdateViewBox();
            AddVisualChild(_magnifier);

            Loaded   += (s, e) => InputManager.Current.PostProcessInput += OnProcessInput;
            Unloaded += (s, e) => InputManager.Current.PostProcessInput -= OnProcessInput;
        }
    public MagnifierAdorner( UIElement element, Magnifier magnifier )
      : base( element )
    {
      _magnifier = magnifier;
      UpdateViewBox();
      AddVisualChild( _magnifier );

      Loaded += ( s, e ) => InputManager.Current.PostProcessInput += OnProcessInput;
      Unloaded += ( s, e ) => InputManager.Current.PostProcessInput -= OnProcessInput;
    }
Example #7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this._zoomFactor = ((Xceed.Wpf.Toolkit.DoubleUpDown)(target));
                return;

            case 2:
                this._isUsingZoomOnMouseWheel = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 3:
                this._zoomFactorOnMouseWheel = ((Xceed.Wpf.Toolkit.DoubleUpDown)(target));
                return;

            case 4:
                this._frameType = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 5:
                this._radius = ((Xceed.Wpf.Toolkit.DoubleUpDown)(target));
                return;

            case 6:
                this._width = ((Xceed.Wpf.Toolkit.DoubleUpDown)(target));
                return;

            case 7:
                this._height = ((Xceed.Wpf.Toolkit.DoubleUpDown)(target));
                return;

            case 8:
                this._borderThickness = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));
                return;

            case 9:
                this._colorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target));
                return;

            case 10:
                this._txtContent = ((Xceed.Wpf.Toolkit.RichTextBox)(target));
                return;

            case 11:
                this._magnifier = ((Xceed.Wpf.Toolkit.Magnifier)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #8
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.keyboard = ((SETS_Project.Keyboard.FloatingTouchScreenKeyboard)(target));
                return;

            case 2:
                this.LayoutGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.kb_magnifier = ((Xceed.Wpf.Toolkit.Magnifier)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #9
0
 public static void SetMagnifier(UIElement element, Magnifier value)
 {
     element.SetValue(CurrentProperty, value);
 }
Example #10
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\MainWindow.xaml"
                ((SETS_Project.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);

            #line default
            #line hidden
                return;

            case 2:

            #line 76 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenWebBrowser);

            #line default
            #line hidden
                return;

            case 3:
                this.calendar = ((System.Windows.Controls.Calendar)(target));
                return;

            case 4:

            #line 89 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenYoutubeApp);

            #line default
            #line hidden
                return;

            case 5:

            #line 99 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenZoom);

            #line default
            #line hidden
                return;

            case 6:

            #line 104 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenCalendar);

            #line default
            #line hidden
                return;

            case 7:

            #line 111 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenSoundSettings);

            #line default
            #line hidden
                return;

            case 8:
                this.Date = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.myTB2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:

            #line 122 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenBrightnessSettings);

            #line default
            #line hidden
                return;

            case 11:
                this.magnifier = ((Xceed.Wpf.Toolkit.Magnifier)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #11
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\Views\WebBrowserWindow.xaml"
                ((SETS_Project.WebBrowserWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);

            #line default
            #line hidden
                return;

            case 2:
                this.wb = ((System.Windows.Controls.WebBrowser)(target));
                return;

            case 3:

            #line 37 "..\..\..\Views\WebBrowserWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenKeyboard);

            #line default
            #line hidden
                return;

            case 4:

            #line 43 "..\..\..\Views\WebBrowserWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseWindow);

            #line default
            #line hidden
                return;

            case 5:
                this.LinkList = ((System.Windows.Controls.ListBox)(target));
                return;

            case 7:

            #line 56 "..\..\..\Views\WebBrowserWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ListBox_Refresh);

            #line default
            #line hidden
                return;

            case 8:

            #line 63 "..\..\..\Views\WebBrowserWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenZoom);

            #line default
            #line hidden
                return;

            case 9:

            #line 69 "..\..\..\Views\WebBrowserWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.wb_ScrollTop);

            #line default
            #line hidden
                return;

            case 10:

            #line 75 "..\..\..\Views\WebBrowserWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.wb_ScrollDown);

            #line default
            #line hidden
                return;

            case 11:
                this.Keyboard = ((SETS_Project.Keyboard.FloatingTouchScreenKeyboard)(target));
                return;

            case 12:
                this.magnifier = ((Xceed.Wpf.Toolkit.Magnifier)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #12
0
        private static void OnFrameTypeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Magnifier m = ( Magnifier )d;

            m.OnFrameTypeChanged(( FrameType )e.OldValue, ( FrameType )e.NewValue);
        }
Example #13
0
        private static void OnZoomFactorOnMouseWheelPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Magnifier m = (Magnifier)d;

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

            m.OnRadiusChanged(e);
        }
Example #15
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.fillingTxt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 2:
     this.originTxt = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 3:
     this.typeTxt = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 4:
     this.numTxt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 5:
     this.yearTxt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 6:
     this.nTypeTxt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 7:
     this.refTypeTxt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 8:
     this.refNumTxt = ((System.Windows.Controls.TextBox)(target));
     
     #line 208 "..\..\..\..\View\IntlNotamView.xaml"
     this.refNumTxt.LostFocus += new System.Windows.RoutedEventHandler(this.refNumTxt_LostFocus);
     
     #line default
     #line hidden
     return;
     case 9:
     this.refYearTxt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 10:
     this.firTxt = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 11:
     this.qCodeTxt = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 12:
     this.trafficTxt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 13:
     this.purposeTxt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 14:
     this.scopeTxt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 15:
     this.lowerTxt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 16:
     this.upperTxt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 17:
     this.latTxt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 18:
     this.longTxt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 19:
     this.radiusTxt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 20:
     this.aeroTxt = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 21:
     this.fromDateTxt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 22:
     this.toDateTxt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 23:
     this.permTxt = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 24:
     this.dFreeTxt = ((System.Windows.Controls.TextBox)(target));
     
     #line 444 "..\..\..\..\View\IntlNotamView.xaml"
     this.dFreeTxt.KeyDown += new System.Windows.Input.KeyEventHandler(this.dFreeTxt_KeyDown);
     
     #line default
     #line hidden
     return;
     case 25:
     this.eFreeTxt = ((System.Windows.Controls.TextBox)(target));
     
     #line 456 "..\..\..\..\View\IntlNotamView.xaml"
     this.eFreeTxt.KeyDown += new System.Windows.Input.KeyEventHandler(this.eFreeTxt_KeyDown);
     
     #line default
     #line hidden
     return;
     case 26:
     this.MagnifiyingGlass = ((Xceed.Wpf.Toolkit.Magnifier)(target));
     return;
     case 27:
     
     #line 471 "..\..\..\..\View\IntlNotamView.xaml"
     ((System.Windows.Controls.CheckBox)(target)).Checked += new System.Windows.RoutedEventHandler(this.CheckBox_Checked);
     
     #line default
     #line hidden
     
     #line 471 "..\..\..\..\View\IntlNotamView.xaml"
     ((System.Windows.Controls.CheckBox)(target)).Unchecked += new System.Windows.RoutedEventHandler(this.CheckBox_Checked);
     
     #line default
     #line hidden
     return;
     case 28:
     this.fFreeTxt = ((System.Windows.Controls.TextBox)(target));
     
     #line 481 "..\..\..\..\View\IntlNotamView.xaml"
     this.fFreeTxt.KeyDown += new System.Windows.Input.KeyEventHandler(this.fFreeTxt_KeyDown);
     
     #line default
     #line hidden
     return;
     case 29:
     this.gFreeTxt = ((System.Windows.Controls.TextBox)(target));
     return;
     }
     this._contentLoaded = true;
 }
Example #16
0
        private static object OnCoerceZoomFactorProperty(DependencyObject d, object value)
        {
            Magnifier m = ( Magnifier )d;

            return(m.OnCoerceZoomFactor(value));
        }
 public static void SetMagnifier( UIElement element, Magnifier value )
 {
   element.SetValue( CurrentProperty, value );
 }
Example #18
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\YoutubeApp.xaml"
                ((SETS_Project.YoutubeApp)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);

            #line default
            #line hidden
                return;

            case 2:
                this.wb = ((System.Windows.Controls.WebBrowser)(target));
                return;

            case 3:

            #line 36 "..\..\YoutubeApp.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenKeyboard);

            #line default
            #line hidden
                return;

            case 4:

            #line 42 "..\..\YoutubeApp.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseWindow);

            #line default
            #line hidden
                return;

            case 5:

            #line 48 "..\..\YoutubeApp.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenZoom);

            #line default
            #line hidden
                return;

            case 6:

            #line 54 "..\..\YoutubeApp.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.wb_ScrollTop);

            #line default
            #line hidden
                return;

            case 7:

            #line 60 "..\..\YoutubeApp.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.wb_ScrollDown);

            #line default
            #line hidden
                return;

            case 8:

            #line 66 "..\..\YoutubeApp.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.wb_ScrollLeft);

            #line default
            #line hidden
                return;

            case 9:

            #line 81 "..\..\YoutubeApp.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.wb_ScrollRight);

            #line default
            #line hidden
                return;

            case 10:
                this.Keyboard = ((SETS_Project.Keyboard.FloatingTouchScreenKeyboard)(target));
                return;

            case 11:
                this.magnifier = ((Xceed.Wpf.Toolkit.Magnifier)(target));
                return;
            }
            this._contentLoaded = true;
        }