//----------------------------------------------
        //
        // Private Methods
        //
        //----------------------------------------------
        #region Private Methods

        private static void _OnWindowServiceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ResizeGrip rg = d as ResizeGrip;

            Debug.Assert(rg != null, "DependencyObject must be of type ResizeGrip.");

            rg.OnWindowServiceChanged(e.OldValue as Window, e.NewValue as Window);
        }
Exemplo n.º 2
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            _titleBar = (Border)GetTemplateChild("PART_TitleBar");
            _minimize = (Button)GetTemplateChild("PART_Minimize");
            _restore = (ToggleButton)GetTemplateChild("PART_Restore");
            _close = (Button)GetTemplateChild("PART_Close");
            _windowResizeWE = (Rectangle)GetTemplateChild("PART_WindowResizeWE");
            _windowResizeNS = (Rectangle)GetTemplateChild("PART_WindowResizeNS");
            _resize = (ResizeGrip)GetTemplateChild("PART_WindowResizeGrip");

            _titleBar.MouseLeftButtonDown += new MouseButtonEventHandler(_titleBar_MouseLeftButtonDown);
            _minimize.Click += new RoutedEventHandler(_minimize_Click);
            _restore.Click += new RoutedEventHandler(_restore_Click);
            _close.Click += new RoutedEventHandler(_close_Click);
            _windowResizeWE.MouseLeftButtonDown += new MouseButtonEventHandler(_windowResizeWE_MouseLeftButtonDown);
            _windowResizeWE.MouseLeftButtonUp += new MouseButtonEventHandler(window_endResize);
            _windowResizeWE.MouseMove += new MouseEventHandler(window_Resize);
            _windowResizeNS.MouseLeftButtonDown += new MouseButtonEventHandler(_windowResizeNS_MouseLeftButtonDown);
            _windowResizeNS.MouseLeftButtonUp += new MouseButtonEventHandler(window_endResize);
            _windowResizeNS.MouseMove += new MouseEventHandler(window_Resize);
        }
Exemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Aide = ((System.Windows.Controls.Button)(target));

            #line 16 "..\..\MainWindow.xaml"
                this.Aide.Click += new System.Windows.RoutedEventHandler(this.Aide_Click);

            #line default
            #line hidden
                return;

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

            case 3:
                this.resizeGrip = ((System.Windows.Controls.Primitives.ResizeGrip)(target));
                return;
            }
            this._contentLoaded = true;
        }
 private bool TrySetResizeGripHeight(ResizeGrip element, double height)
 {
     if (height <= 0)
         return false;
     element.Height = height;
     return true;
 }
Exemplo n.º 5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 7 "..\..\..\MainWindow.xaml"
                ((DeExampleCSharpWPF.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden

            #line 7 "..\..\..\MainWindow.xaml"
                ((DeExampleCSharpWPF.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.ReconBox = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 3:
                this.EnableDetector = ((System.Windows.Controls.RadioButton)(target));

            #line 25 "..\..\..\MainWindow.xaml"
                this.EnableDetector.Click += new System.Windows.RoutedEventHandler(this.EnableDetector_click);

            #line default
            #line hidden
                return;

            case 4:
                this.slider_innerang = ((System.Windows.Controls.Slider)(target));

            #line 27 "..\..\..\MainWindow.xaml"
                this.slider_innerang.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.changeinnerang);

            #line default
            #line hidden
                return;

            case 5:
                this.slider_outerang = ((System.Windows.Controls.Slider)(target));

            #line 28 "..\..\..\MainWindow.xaml"
                this.slider_outerang.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.changeouterang);

            #line default
            #line hidden
                return;

            case 6:
                this.Recon = ((System.Windows.Controls.Image)(target));
                return;

            case 7:
                this.textBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.button = ((System.Windows.Controls.Button)(target));
                return;

            case 9:
                this.button_Copy = ((System.Windows.Controls.Button)(target));
                return;

            case 10:
                this.Submit_Setting = ((System.Windows.Controls.Button)(target));

            #line 41 "..\..\..\MainWindow.xaml"
                this.Submit_Setting.Click += new System.Windows.RoutedEventHandler(this.Submit_Setting_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.resizeGrip = ((System.Windows.Controls.Primitives.ResizeGrip)(target));
                return;

            case 12:
                this.textBlock1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.textBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 14:
                this.textBox_Copy = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.textBox_Copy1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.textBox_Copy2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:
                this.textBlock1_Copy = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 18:
                this.textBlock1_Copy1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 19:
                this.textBlock1_Copy2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 20:
                this.textBlock1_Copy3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 21:
                this.btnLiveCapture = ((System.Windows.Controls.Button)(target));

            #line 61 "..\..\..\MainWindow.xaml"
                this.btnLiveCapture.Click += new System.Windows.RoutedEventHandler(this.btnLiveCapture_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.btnGetImage = ((System.Windows.Controls.Button)(target));

            #line 62 "..\..\..\MainWindow.xaml"
                this.btnGetImage.Click += new System.Windows.RoutedEventHandler(this.btnGetImage_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.pictureBox1 = ((System.Windows.Controls.Image)(target));
                return;

            case 24:
                this.IPAddr = ((System.Windows.Controls.TextBox)(target));
                return;

            case 25:
                this.btnConnect = ((System.Windows.Controls.Button)(target));

            #line 70 "..\..\..\MainWindow.xaml"
                this.btnConnect.Click += new System.Windows.RoutedEventHandler(this.btnConnect_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.cmbCameras = ((System.Windows.Controls.ComboBox)(target));

            #line 72 "..\..\..\MainWindow.xaml"
                this.cmbCameras.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbCameras_SelectionChanged);

            #line default
            #line hidden
                return;

            case 27:
                this.cmbTransport = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 28:
                this.InnerAngle = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 29:
                this.PixelsX = ((System.Windows.Controls.TextBox)(target));
                return;

            case 30:
                this.PixelsY = ((System.Windows.Controls.TextBox)(target));
                return;

            case 31:
                this.textBlock1_Copy4 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 32:
                this.textBlock1_Copy5 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 33:
                this.textBlock1_Copy6 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 34:
                this.PosX = ((System.Windows.Controls.TextBox)(target));
                return;

            case 35:
                this.PosY = ((System.Windows.Controls.TextBox)(target));
                return;

            case 36:
                this.textBlock1_Copy7 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 37:
                this.textBlock1_Copy8 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 38:
                this.textBlock1_Copy9 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 39:
                this.textBlock1_Copy10 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 40:
                this.textBlock1_Copy11 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 41:
                this.TotalImages = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 42:
                this.RamSpace = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 43:
                this.DisableDetector = ((System.Windows.Controls.RadioButton)(target));

            #line 106 "..\..\..\MainWindow.xaml"
                this.DisableDetector.Click += new System.Windows.RoutedEventHandler(this.DisableDetector_click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 6
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\..\..\Views\PhoneView.xaml"
                ((ScreenCast.Views.PhoneView)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.PhoneView_OnSizeChanged);

            #line default
            #line hidden

            #line 10 "..\..\..\..\Views\PhoneView.xaml"
                ((ScreenCast.Views.PhoneView)(target)).Loaded += new System.Windows.RoutedEventHandler(this.PhoneView_OnLoaded);

            #line default
            #line hidden

            #line 10 "..\..\..\..\Views\PhoneView.xaml"
                ((ScreenCast.Views.PhoneView)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.PhoneView_OnUnloaded);

            #line default
            #line hidden
                return;

            case 2:

            #line 13 "..\..\..\..\Views\PhoneView.xaml"
                ((System.Windows.Controls.Border)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 3:
                this.Player = ((ScreenCast.Views.VideoPlayerHost)(target));
                return;

            case 4:
                this.resizeGrip = ((System.Windows.Controls.Primitives.ResizeGrip)(target));

            #line 55 "..\..\..\..\Views\PhoneView.xaml"
                this.resizeGrip.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ResizeGrip_MouseLeftButtonDown_1);

            #line default
            #line hidden

            #line 56 "..\..\..\..\Views\PhoneView.xaml"
                this.resizeGrip.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ResizeGrip_MouseLeftButtonUp_1);

            #line default
            #line hidden

            #line 56 "..\..\..\..\Views\PhoneView.xaml"
                this.resizeGrip.MouseMove += new System.Windows.Input.MouseEventHandler(this.ResizeGrip_MouseMove_1);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 7
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.DlgNote = ((PNotes.NET.WndNote)(target));
     
     #line 17 "..\..\WndNote.xaml"
     this.DlgNote.SourceInitialized += new System.EventHandler(this.Window_SourceInitialized);
     
     #line default
     #line hidden
     
     #line 18 "..\..\WndNote.xaml"
     this.DlgNote.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDown);
     
     #line default
     #line hidden
     
     #line 19 "..\..\WndNote.xaml"
     this.DlgNote.Activated += new System.EventHandler(this.Window_Activated);
     
     #line default
     #line hidden
     
     #line 20 "..\..\WndNote.xaml"
     this.DlgNote.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     
     #line 21 "..\..\WndNote.xaml"
     this.DlgNote.Closed += new System.EventHandler(this.Window_Closed);
     
     #line default
     #line hidden
     
     #line 22 "..\..\WndNote.xaml"
     this.DlgNote.Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
     
     #line default
     #line hidden
     
     #line 23 "..\..\WndNote.xaml"
     this.DlgNote.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Window_MouseEnter);
     
     #line default
     #line hidden
     
     #line 24 "..\..\WndNote.xaml"
     this.DlgNote.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Window_MouseLeave);
     
     #line default
     #line hidden
     
     #line 25 "..\..\WndNote.xaml"
     this.DlgNote.PreviewMouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Window_PreviewMouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 2:
     this.ctmNote = ((System.Windows.Controls.ContextMenu)(target));
     
     #line 35 "..\..\WndNote.xaml"
     this.ctmNote.Opened += new System.Windows.RoutedEventHandler(this.ctmNote_Opened);
     
     #line default
     #line hidden
     return;
     case 3:
     this.mnuSave = ((System.Windows.Controls.MenuItem)(target));
     
     #line 36 "..\..\WndNote.xaml"
     this.mnuSave.Click += new System.Windows.RoutedEventHandler(this.mnuSave_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.mnuRename = ((System.Windows.Controls.MenuItem)(target));
     
     #line 41 "..\..\WndNote.xaml"
     this.mnuRename.Click += new System.Windows.RoutedEventHandler(this.mnuRename_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.mnuSaveAsText = ((System.Windows.Controls.MenuItem)(target));
     
     #line 46 "..\..\WndNote.xaml"
     this.mnuSaveAsText.Click += new System.Windows.RoutedEventHandler(this.mnuSaveAsText_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.mnuRestoreFromBackup = ((System.Windows.Controls.MenuItem)(target));
     
     #line 51 "..\..\WndNote.xaml"
     this.mnuRestoreFromBackup.Click += new System.Windows.RoutedEventHandler(this.mnuRestoreFromBackup_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.mnuDuplicateNote = ((System.Windows.Controls.MenuItem)(target));
     
     #line 56 "..\..\WndNote.xaml"
     this.mnuDuplicateNote.Click += new System.Windows.RoutedEventHandler(this.mnuDuplicateNote_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.mnuSaveAsShortcut = ((System.Windows.Controls.MenuItem)(target));
     
     #line 61 "..\..\WndNote.xaml"
     this.mnuSaveAsShortcut.Click += new System.Windows.RoutedEventHandler(this.mnuSaveAsShortcut_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.toolStripSeparator1 = ((System.Windows.Controls.Separator)(target));
     return;
     case 10:
     this.mnuPrint = ((System.Windows.Controls.MenuItem)(target));
     
     #line 67 "..\..\WndNote.xaml"
     this.mnuPrint.Click += new System.Windows.RoutedEventHandler(this.mnuPrint_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.toolStripSeparator2 = ((System.Windows.Controls.Separator)(target));
     return;
     case 12:
     this.mnuAdjustAppearance = ((System.Windows.Controls.MenuItem)(target));
     
     #line 73 "..\..\WndNote.xaml"
     this.mnuAdjustAppearance.Click += new System.Windows.RoutedEventHandler(this.mnuAdjustAppearance_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.mnuAdjustSchedule = ((System.Windows.Controls.MenuItem)(target));
     
     #line 78 "..\..\WndNote.xaml"
     this.mnuAdjustSchedule.Click += new System.Windows.RoutedEventHandler(this.mnuAdjustSchedule_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     this.toolStripSeparator3 = ((System.Windows.Controls.Separator)(target));
     return;
     case 15:
     this.mnuHideNote = ((System.Windows.Controls.MenuItem)(target));
     
     #line 84 "..\..\WndNote.xaml"
     this.mnuHideNote.Click += new System.Windows.RoutedEventHandler(this.mnuHideNote_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.mnuDeleteNote = ((System.Windows.Controls.MenuItem)(target));
     
     #line 89 "..\..\WndNote.xaml"
     this.mnuDeleteNote.Click += new System.Windows.RoutedEventHandler(this.mnuDeleteNote_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.mnuPanel = ((System.Windows.Controls.MenuItem)(target));
     
     #line 94 "..\..\WndNote.xaml"
     this.mnuPanel.Click += new System.Windows.RoutedEventHandler(this.mnuPanel_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.toolStripSeparator4 = ((System.Windows.Controls.Separator)(target));
     return;
     case 19:
     this.mnuDock = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 20:
     this.mnuDockNone = ((System.Windows.Controls.MenuItem)(target));
     
     #line 104 "..\..\WndNote.xaml"
     this.mnuDockNone.Click += new System.Windows.RoutedEventHandler(this.mnuDockNone_Click);
     
     #line default
     #line hidden
     return;
     case 21:
     this.mnuDockLeft = ((System.Windows.Controls.MenuItem)(target));
     
     #line 105 "..\..\WndNote.xaml"
     this.mnuDockLeft.Click += new System.Windows.RoutedEventHandler(this.mnuDockLeft_Click);
     
     #line default
     #line hidden
     return;
     case 22:
     this.mnuDockTop = ((System.Windows.Controls.MenuItem)(target));
     
     #line 110 "..\..\WndNote.xaml"
     this.mnuDockTop.Click += new System.Windows.RoutedEventHandler(this.mnuDockTop_Click);
     
     #line default
     #line hidden
     return;
     case 23:
     this.mnuDockRight = ((System.Windows.Controls.MenuItem)(target));
     
     #line 115 "..\..\WndNote.xaml"
     this.mnuDockRight.Click += new System.Windows.RoutedEventHandler(this.mnuDockRight_Click);
     
     #line default
     #line hidden
     return;
     case 24:
     this.mnuDockBottom = ((System.Windows.Controls.MenuItem)(target));
     
     #line 120 "..\..\WndNote.xaml"
     this.mnuDockBottom.Click += new System.Windows.RoutedEventHandler(this.mnuDockBottom_Click);
     
     #line default
     #line hidden
     return;
     case 25:
     this.toolStripSeparator5 = ((System.Windows.Controls.Separator)(target));
     return;
     case 26:
     this.mnuSendAsText = ((System.Windows.Controls.MenuItem)(target));
     
     #line 127 "..\..\WndNote.xaml"
     this.mnuSendAsText.Click += new System.Windows.RoutedEventHandler(this.mnuSendAsText_Click);
     
     #line default
     #line hidden
     return;
     case 27:
     this.mnuSendAsAttachment = ((System.Windows.Controls.MenuItem)(target));
     
     #line 132 "..\..\WndNote.xaml"
     this.mnuSendAsAttachment.Click += new System.Windows.RoutedEventHandler(this.mnuSendAsAttachment_Click);
     
     #line default
     #line hidden
     return;
     case 28:
     this.mnuSendZip = ((System.Windows.Controls.MenuItem)(target));
     
     #line 137 "..\..\WndNote.xaml"
     this.mnuSendZip.Click += new System.Windows.RoutedEventHandler(this.mnuSendZip_Click);
     
     #line default
     #line hidden
     return;
     case 29:
     this.mnuSendNetwork = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 30:
     this.mnuAddContact = ((System.Windows.Controls.MenuItem)(target));
     
     #line 146 "..\..\WndNote.xaml"
     this.mnuAddContact.Click += new System.Windows.RoutedEventHandler(this.mnuAddContact_Click);
     
     #line default
     #line hidden
     return;
     case 31:
     this.mnuAddGroup = ((System.Windows.Controls.MenuItem)(target));
     
     #line 151 "..\..\WndNote.xaml"
     this.mnuAddGroup.Click += new System.Windows.RoutedEventHandler(this.mnuAddGroup_Click);
     
     #line default
     #line hidden
     return;
     case 32:
     this.toolStripMenuItem50 = ((System.Windows.Controls.Separator)(target));
     return;
     case 33:
     this.mnuSelectContact = ((System.Windows.Controls.MenuItem)(target));
     
     #line 157 "..\..\WndNote.xaml"
     this.mnuSelectContact.Click += new System.Windows.RoutedEventHandler(this.mnuSelectContact_Click);
     
     #line default
     #line hidden
     return;
     case 34:
     this.mnuSelectGroup = ((System.Windows.Controls.MenuItem)(target));
     
     #line 162 "..\..\WndNote.xaml"
     this.mnuSelectGroup.Click += new System.Windows.RoutedEventHandler(this.mnuSelectGroup_Click);
     
     #line default
     #line hidden
     return;
     case 35:
     this.mnuReply = ((System.Windows.Controls.MenuItem)(target));
     
     #line 168 "..\..\WndNote.xaml"
     this.mnuReply.Click += new System.Windows.RoutedEventHandler(this.mnuReply_Click);
     
     #line default
     #line hidden
     return;
     case 36:
     this.toolStripSeparator14 = ((System.Windows.Controls.Separator)(target));
     return;
     case 37:
     this.mnuPostNote = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 38:
     this.mnuReplacePost = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 39:
     this.toolStripSeparator13 = ((System.Windows.Controls.Separator)(target));
     return;
     case 40:
     this.mnuExportToOffice = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 41:
     this.mnuExportOutlookNote = ((System.Windows.Controls.MenuItem)(target));
     
     #line 189 "..\..\WndNote.xaml"
     this.mnuExportOutlookNote.Click += new System.Windows.RoutedEventHandler(this.mnuExportOutlookNote_Click);
     
     #line default
     #line hidden
     return;
     case 42:
     this.toolStripSeparator6 = ((System.Windows.Controls.Separator)(target));
     return;
     case 43:
     this.mnuTags = ((System.Windows.Controls.MenuItem)(target));
     
     #line 196 "..\..\WndNote.xaml"
     this.mnuTags.Click += new System.Windows.RoutedEventHandler(this.mnuTags_Click);
     
     #line default
     #line hidden
     return;
     case 44:
     this.toolStripSeparator10 = ((System.Windows.Controls.Separator)(target));
     return;
     case 45:
     this.mnuLinked = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 46:
     this.mnuManageLinks = ((System.Windows.Controls.MenuItem)(target));
     
     #line 206 "..\..\WndNote.xaml"
     this.mnuManageLinks.Click += new System.Windows.RoutedEventHandler(this.mnuManageLinks_Click);
     
     #line default
     #line hidden
     return;
     case 47:
     this.toolStripSeparator11 = ((System.Windows.Controls.Separator)(target));
     return;
     case 48:
     this.mnuAddToFavorites = ((System.Windows.Controls.MenuItem)(target));
     
     #line 209 "..\..\WndNote.xaml"
     this.mnuAddToFavorites.Click += new System.Windows.RoutedEventHandler(this.mnuAddToFavorites_Click);
     
     #line default
     #line hidden
     return;
     case 49:
     this.mnuRemoveFromFavorites = ((System.Windows.Controls.MenuItem)(target));
     
     #line 214 "..\..\WndNote.xaml"
     this.mnuRemoveFromFavorites.Click += new System.Windows.RoutedEventHandler(this.mnuRemoveFromFavorites_Click);
     
     #line default
     #line hidden
     return;
     case 50:
     this.toolStripSeparator8 = ((System.Windows.Controls.Separator)(target));
     return;
     case 51:
     this.mnuOnTop = ((System.Windows.Controls.MenuItem)(target));
     
     #line 220 "..\..\WndNote.xaml"
     this.mnuOnTop.Click += new System.Windows.RoutedEventHandler(this.mnuOnTop_Click);
     
     #line default
     #line hidden
     return;
     case 52:
     this.mnuToggleHighPriority = ((System.Windows.Controls.MenuItem)(target));
     
     #line 221 "..\..\WndNote.xaml"
     this.mnuToggleHighPriority.Click += new System.Windows.RoutedEventHandler(this.mnuToggleHighPriority_Click);
     
     #line default
     #line hidden
     return;
     case 53:
     this.mnuToggleProtectionMode = ((System.Windows.Controls.MenuItem)(target));
     
     #line 222 "..\..\WndNote.xaml"
     this.mnuToggleProtectionMode.Click += new System.Windows.RoutedEventHandler(this.mnuToggleProtectionMode_Click);
     
     #line default
     #line hidden
     return;
     case 54:
     this.mnuSetPassword = ((System.Windows.Controls.MenuItem)(target));
     
     #line 223 "..\..\WndNote.xaml"
     this.mnuSetPassword.Click += new System.Windows.RoutedEventHandler(this.mnuSetPassword_Click);
     
     #line default
     #line hidden
     return;
     case 55:
     this.mnuRemovePassword = ((System.Windows.Controls.MenuItem)(target));
     
     #line 228 "..\..\WndNote.xaml"
     this.mnuRemovePassword.Click += new System.Windows.RoutedEventHandler(this.mnuRemovePassword_Click);
     
     #line default
     #line hidden
     return;
     case 56:
     this.mnuMarkAsComplete = ((System.Windows.Controls.MenuItem)(target));
     
     #line 233 "..\..\WndNote.xaml"
     this.mnuMarkAsComplete.Click += new System.Windows.RoutedEventHandler(this.mnuMarkAsComplete_Click);
     
     #line default
     #line hidden
     return;
     case 57:
     this.mnuRollUnroll = ((System.Windows.Controls.MenuItem)(target));
     
     #line 234 "..\..\WndNote.xaml"
     this.mnuRollUnroll.Click += new System.Windows.RoutedEventHandler(this.mnuRollUnroll_Click);
     
     #line default
     #line hidden
     return;
     case 58:
     this.mnuPin = ((System.Windows.Controls.MenuItem)(target));
     
     #line 239 "..\..\WndNote.xaml"
     this.mnuPin.Click += new System.Windows.RoutedEventHandler(this.mnuPin_Click);
     
     #line default
     #line hidden
     return;
     case 59:
     this.mnuUnpin = ((System.Windows.Controls.MenuItem)(target));
     
     #line 244 "..\..\WndNote.xaml"
     this.mnuUnpin.Click += new System.Windows.RoutedEventHandler(this.mnuUnpin_Click);
     
     #line default
     #line hidden
     return;
     case 60:
     this.mnuScramble = ((System.Windows.Controls.MenuItem)(target));
     
     #line 249 "..\..\WndNote.xaml"
     this.mnuScramble.Click += new System.Windows.RoutedEventHandler(this.mnuScramble_Click);
     
     #line default
     #line hidden
     return;
     case 61:
     
     #line 253 "..\..\WndNote.xaml"
     ((System.Windows.Media.Animation.Storyboard)(target)).Completed += new System.EventHandler(this.StoryboardClose_Completed);
     
     #line default
     #line hidden
     return;
     case 62:
     
     #line 257 "..\..\WndNote.xaml"
     ((System.Windows.Media.Animation.DoubleAnimation)(target)).Completed += new System.EventHandler(this.LeftAnimationThumbnail_Completed);
     
     #line default
     #line hidden
     return;
     case 63:
     
     #line 262 "..\..\WndNote.xaml"
     ((System.Windows.Media.Animation.DoubleAnimation)(target)).Completed += new System.EventHandler(this.TopAnimationThumbnail_Completed);
     
     #line default
     #line hidden
     return;
     case 64:
     this.cnvSkin = ((System.Windows.Controls.Canvas)(target));
     return;
     case 65:
     this.SkinImage = ((System.Windows.Controls.Image)(target));
     return;
     case 66:
     this.SkinnableHeader = ((PNotes.NET.SkinnableHeader)(target));
     return;
     case 67:
     this.SkinnableFooter = ((PNotes.NET.SkinnableFooter)(target));
     return;
     case 68:
     this.SkinnableToolbar = ((PNotes.NET.SkinnableToolbar)(target));
     return;
     case 69:
     this.EditTargetSkinnable = ((System.Windows.Controls.Border)(target));
     return;
     case 70:
     this.pnlkSkinless = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 71:
     this.SkinlessHeader = ((PNotes.NET.SkinlessHeader)(target));
     return;
     case 72:
     this.SkinlessFooter = ((PNotes.NET.SkinlessFooter)(target));
     return;
     case 73:
     this.SkinlessToolbar = ((PNotes.NET.SkinlessToolbar)(target));
     return;
     case 74:
     this.ctmEdit = ((System.Windows.Controls.ContextMenu)(target));
     
     #line 309 "..\..\WndNote.xaml"
     this.ctmEdit.Opened += new System.Windows.RoutedEventHandler(this.ctmEdit_Opened);
     
     #line default
     #line hidden
     return;
     case 75:
     this.mnuUndo = ((System.Windows.Controls.MenuItem)(target));
     
     #line 310 "..\..\WndNote.xaml"
     this.mnuUndo.Click += new System.Windows.RoutedEventHandler(this.mnuUndo_Click);
     
     #line default
     #line hidden
     return;
     case 76:
     this.mnuRedo = ((System.Windows.Controls.MenuItem)(target));
     
     #line 315 "..\..\WndNote.xaml"
     this.mnuRedo.Click += new System.Windows.RoutedEventHandler(this.mnuRedo_Click);
     
     #line default
     #line hidden
     return;
     case 77:
     this.toolStripSeparator9 = ((System.Windows.Controls.Separator)(target));
     return;
     case 78:
     this.mnuCut = ((System.Windows.Controls.MenuItem)(target));
     
     #line 321 "..\..\WndNote.xaml"
     this.mnuCut.Click += new System.Windows.RoutedEventHandler(this.mnuCut_Click);
     
     #line default
     #line hidden
     return;
     case 79:
     this.mnuCopy = ((System.Windows.Controls.MenuItem)(target));
     
     #line 326 "..\..\WndNote.xaml"
     this.mnuCopy.Click += new System.Windows.RoutedEventHandler(this.mnuCopy_Click);
     
     #line default
     #line hidden
     return;
     case 80:
     this.mnuPaste = ((System.Windows.Controls.MenuItem)(target));
     
     #line 331 "..\..\WndNote.xaml"
     this.mnuPaste.Click += new System.Windows.RoutedEventHandler(this.mnuPaste_Click);
     
     #line default
     #line hidden
     return;
     case 81:
     this.toolStripMenuItem11 = ((System.Windows.Controls.Separator)(target));
     return;
     case 82:
     this.mnuCopyPlain = ((System.Windows.Controls.MenuItem)(target));
     
     #line 337 "..\..\WndNote.xaml"
     this.mnuCopyPlain.Click += new System.Windows.RoutedEventHandler(this.mnuCopyPlain_Click);
     
     #line default
     #line hidden
     return;
     case 83:
     this.mnuPastePlain = ((System.Windows.Controls.MenuItem)(target));
     
     #line 342 "..\..\WndNote.xaml"
     this.mnuPastePlain.Click += new System.Windows.RoutedEventHandler(this.mnuPastePlain_Click);
     
     #line default
     #line hidden
     return;
     case 84:
     this.toolStripSeparator12 = ((System.Windows.Controls.Separator)(target));
     return;
     case 85:
     this.mnuFormat = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 86:
     this.mnuToUpper = ((System.Windows.Controls.MenuItem)(target));
     
     #line 349 "..\..\WndNote.xaml"
     this.mnuToUpper.Click += new System.Windows.RoutedEventHandler(this.mnuToUpper_Click);
     
     #line default
     #line hidden
     return;
     case 87:
     this.mnuToLower = ((System.Windows.Controls.MenuItem)(target));
     
     #line 354 "..\..\WndNote.xaml"
     this.mnuToLower.Click += new System.Windows.RoutedEventHandler(this.mnuToLower_Click);
     
     #line default
     #line hidden
     return;
     case 88:
     this.mnuCapSent = ((System.Windows.Controls.MenuItem)(target));
     
     #line 359 "..\..\WndNote.xaml"
     this.mnuCapSent.Click += new System.Windows.RoutedEventHandler(this.mnuCapSent_Click);
     
     #line default
     #line hidden
     return;
     case 89:
     this.mnuCapWord = ((System.Windows.Controls.MenuItem)(target));
     
     #line 364 "..\..\WndNote.xaml"
     this.mnuCapWord.Click += new System.Windows.RoutedEventHandler(this.mnuCapWord_Click);
     
     #line default
     #line hidden
     return;
     case 90:
     this.mnuToggleCase = ((System.Windows.Controls.MenuItem)(target));
     
     #line 369 "..\..\WndNote.xaml"
     this.mnuToggleCase.Click += new System.Windows.RoutedEventHandler(this.mnuToggleCase_Click);
     
     #line default
     #line hidden
     return;
     case 91:
     this.toolStripSeparator7 = ((System.Windows.Controls.Separator)(target));
     return;
     case 92:
     this.mnuFont = ((System.Windows.Controls.MenuItem)(target));
     
     #line 375 "..\..\WndNote.xaml"
     this.mnuFont.Click += new System.Windows.RoutedEventHandler(this.mnuFont_Click);
     
     #line default
     #line hidden
     return;
     case 93:
     this.mnuFontSize = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 94:
     this.mnuFontColor = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 95:
     this.mnuBold = ((System.Windows.Controls.MenuItem)(target));
     
     #line 390 "..\..\WndNote.xaml"
     this.mnuBold.Click += new System.Windows.RoutedEventHandler(this.mnuBold_Click);
     
     #line default
     #line hidden
     return;
     case 96:
     this.mnuItalic = ((System.Windows.Controls.MenuItem)(target));
     
     #line 395 "..\..\WndNote.xaml"
     this.mnuItalic.Click += new System.Windows.RoutedEventHandler(this.mnuItalic_Click);
     
     #line default
     #line hidden
     return;
     case 97:
     this.mnuUnderline = ((System.Windows.Controls.MenuItem)(target));
     
     #line 400 "..\..\WndNote.xaml"
     this.mnuUnderline.Click += new System.Windows.RoutedEventHandler(this.mnuUnderline_Click);
     
     #line default
     #line hidden
     return;
     case 98:
     this.mnuStrikethrough = ((System.Windows.Controls.MenuItem)(target));
     
     #line 405 "..\..\WndNote.xaml"
     this.mnuStrikethrough.Click += new System.Windows.RoutedEventHandler(this.mnuStrikethrough_Click);
     
     #line default
     #line hidden
     return;
     case 99:
     this.mnuHighlight = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 100:
     this.mnuAlignLeft = ((System.Windows.Controls.MenuItem)(target));
     
     #line 415 "..\..\WndNote.xaml"
     this.mnuAlignLeft.Click += new System.Windows.RoutedEventHandler(this.mnuAlignLeft_Click);
     
     #line default
     #line hidden
     return;
     case 101:
     this.mnuAlignCenter = ((System.Windows.Controls.MenuItem)(target));
     
     #line 420 "..\..\WndNote.xaml"
     this.mnuAlignCenter.Click += new System.Windows.RoutedEventHandler(this.mnuAlignCenter_Click);
     
     #line default
     #line hidden
     return;
     case 102:
     this.mnuAlignRight = ((System.Windows.Controls.MenuItem)(target));
     
     #line 425 "..\..\WndNote.xaml"
     this.mnuAlignRight.Click += new System.Windows.RoutedEventHandler(this.mnuAlignRight_Click);
     
     #line default
     #line hidden
     return;
     case 103:
     this.mnuBulletsNumbering = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 104:
     this.toolStripSeparator15 = ((System.Windows.Controls.Separator)(target));
     return;
     case 105:
     this.mnuLineSpacing = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 106:
     this.mnuSpace10 = ((System.Windows.Controls.MenuItem)(target));
     
     #line 440 "..\..\WndNote.xaml"
     this.mnuSpace10.Click += new System.Windows.RoutedEventHandler(this.mnuSpace10_Click);
     
     #line default
     #line hidden
     return;
     case 107:
     this.mnuSpace15 = ((System.Windows.Controls.MenuItem)(target));
     
     #line 441 "..\..\WndNote.xaml"
     this.mnuSpace15.Click += new System.Windows.RoutedEventHandler(this.mnuSpace15_Click);
     
     #line default
     #line hidden
     return;
     case 108:
     this.mnuSpace20 = ((System.Windows.Controls.MenuItem)(target));
     
     #line 442 "..\..\WndNote.xaml"
     this.mnuSpace20.Click += new System.Windows.RoutedEventHandler(this.mnuSpace20_Click);
     
     #line default
     #line hidden
     return;
     case 109:
     this.mnuSpace30 = ((System.Windows.Controls.MenuItem)(target));
     
     #line 443 "..\..\WndNote.xaml"
     this.mnuSpace30.Click += new System.Windows.RoutedEventHandler(this.mnuSpace30_Click);
     
     #line default
     #line hidden
     return;
     case 110:
     this.toolStripSeparator17 = ((System.Windows.Controls.Separator)(target));
     return;
     case 111:
     this.mnuAddSpaceBefore = ((System.Windows.Controls.MenuItem)(target));
     
     #line 445 "..\..\WndNote.xaml"
     this.mnuAddSpaceBefore.Click += new System.Windows.RoutedEventHandler(this.mnuAddSpaceBefore_Click);
     
     #line default
     #line hidden
     return;
     case 112:
     this.mnuRemoveSpaceBefore = ((System.Windows.Controls.MenuItem)(target));
     
     #line 450 "..\..\WndNote.xaml"
     this.mnuRemoveSpaceBefore.Click += new System.Windows.RoutedEventHandler(this.mnuRemoveSpaceBefore_Click);
     
     #line default
     #line hidden
     return;
     case 113:
     this.mnuRemoveSpaceAfter = ((System.Windows.Controls.MenuItem)(target));
     
     #line 455 "..\..\WndNote.xaml"
     this.mnuRemoveSpaceAfter.Click += new System.Windows.RoutedEventHandler(this.mnuRemoveSpaceAfter_Click);
     
     #line default
     #line hidden
     return;
     case 114:
     this.mnuAddSpaceAfter = ((System.Windows.Controls.MenuItem)(target));
     
     #line 460 "..\..\WndNote.xaml"
     this.mnuAddSpaceAfter.Click += new System.Windows.RoutedEventHandler(this.mnuAddSpaceAfter_Click);
     
     #line default
     #line hidden
     return;
     case 115:
     this.toolStripSeparator16 = ((System.Windows.Controls.Separator)(target));
     return;
     case 116:
     this.mnuSubscript = ((System.Windows.Controls.MenuItem)(target));
     
     #line 467 "..\..\WndNote.xaml"
     this.mnuSubscript.Click += new System.Windows.RoutedEventHandler(this.mnuSubscript_Click);
     
     #line default
     #line hidden
     return;
     case 117:
     this.mnuSuperscript = ((System.Windows.Controls.MenuItem)(target));
     
     #line 472 "..\..\WndNote.xaml"
     this.mnuSuperscript.Click += new System.Windows.RoutedEventHandler(this.mnuSuperscript_Click);
     
     #line default
     #line hidden
     return;
     case 118:
     this.toolStripSeparator19 = ((System.Windows.Controls.Separator)(target));
     return;
     case 119:
     this.mnuClearFormat = ((System.Windows.Controls.MenuItem)(target));
     
     #line 478 "..\..\WndNote.xaml"
     this.mnuClearFormat.Click += new System.Windows.RoutedEventHandler(this.mnuClearFormat_Click);
     
     #line default
     #line hidden
     return;
     case 120:
     this.toolStripSeparator20 = ((System.Windows.Controls.Separator)(target));
     return;
     case 121:
     this.mnuIncreaseIndent = ((System.Windows.Controls.MenuItem)(target));
     
     #line 484 "..\..\WndNote.xaml"
     this.mnuIncreaseIndent.Click += new System.Windows.RoutedEventHandler(this.mnuIncreaseIndent_Click);
     
     #line default
     #line hidden
     return;
     case 122:
     this.mnuDecreaseIndent = ((System.Windows.Controls.MenuItem)(target));
     
     #line 489 "..\..\WndNote.xaml"
     this.mnuDecreaseIndent.Click += new System.Windows.RoutedEventHandler(this.mnuDecreaseIndent_Click);
     
     #line default
     #line hidden
     return;
     case 123:
     this.toolStripMenuItem51 = ((System.Windows.Controls.Separator)(target));
     return;
     case 124:
     this.mnuInsert = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 125:
     this.mnuInsertPicture = ((System.Windows.Controls.MenuItem)(target));
     
     #line 497 "..\..\WndNote.xaml"
     this.mnuInsertPicture.Click += new System.Windows.RoutedEventHandler(this.mnuInsertPicture_Click);
     
     #line default
     #line hidden
     return;
     case 126:
     this.mnuInsertSmiley = ((System.Windows.Controls.MenuItem)(target));
     
     #line 502 "..\..\WndNote.xaml"
     this.mnuInsertSmiley.Click += new System.Windows.RoutedEventHandler(this.mnuInsertSmiley_Click);
     
     #line default
     #line hidden
     return;
     case 127:
     this.mnuInsertDT = ((System.Windows.Controls.MenuItem)(target));
     
     #line 507 "..\..\WndNote.xaml"
     this.mnuInsertDT.Click += new System.Windows.RoutedEventHandler(this.mnuInsertDT_Click);
     
     #line default
     #line hidden
     return;
     case 128:
     this.mnuInsertTable = ((System.Windows.Controls.MenuItem)(target));
     
     #line 512 "..\..\WndNote.xaml"
     this.mnuInsertTable.Click += new System.Windows.RoutedEventHandler(this.mnuInsertTable_Click);
     
     #line default
     #line hidden
     return;
     case 129:
     this.mnuInsertSpecialSymbol = ((System.Windows.Controls.MenuItem)(target));
     
     #line 517 "..\..\WndNote.xaml"
     this.mnuInsertSpecialSymbol.Click += new System.Windows.RoutedEventHandler(this.mnuInsertSpecialSymbol_Click);
     
     #line default
     #line hidden
     return;
     case 130:
     this.mnuDrawing = ((System.Windows.Controls.MenuItem)(target));
     
     #line 522 "..\..\WndNote.xaml"
     this.mnuDrawing.Click += new System.Windows.RoutedEventHandler(this.mnuDrawing_Click);
     
     #line default
     #line hidden
     return;
     case 131:
     this.toolStripMenuItem52 = ((System.Windows.Controls.Separator)(target));
     return;
     case 132:
     this.mnuSpell = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 133:
     this.mnuCheckSpellNow = ((System.Windows.Controls.MenuItem)(target));
     
     #line 533 "..\..\WndNote.xaml"
     this.mnuCheckSpellNow.Click += new System.Windows.RoutedEventHandler(this.mnuCheckSpellNow_Click);
     
     #line default
     #line hidden
     return;
     case 134:
     this.toolStripMenuItem53 = ((System.Windows.Controls.Separator)(target));
     return;
     case 135:
     this.mnuCheckSpellAuto = ((System.Windows.Controls.MenuItem)(target));
     
     #line 535 "..\..\WndNote.xaml"
     this.mnuCheckSpellAuto.Click += new System.Windows.RoutedEventHandler(this.mnuCheckSpellAuto_Click);
     
     #line default
     #line hidden
     return;
     case 136:
     this.toolStripMenuItem54 = ((System.Windows.Controls.Separator)(target));
     return;
     case 137:
     this.mnuDownloadDict = ((System.Windows.Controls.MenuItem)(target));
     
     #line 537 "..\..\WndNote.xaml"
     this.mnuDownloadDict.Click += new System.Windows.RoutedEventHandler(this.mnuDownloadDict_Click);
     
     #line default
     #line hidden
     return;
     case 138:
     this.toolStripMenuItem55 = ((System.Windows.Controls.Separator)(target));
     return;
     case 139:
     this.mnuFind = ((System.Windows.Controls.MenuItem)(target));
     
     #line 540 "..\..\WndNote.xaml"
     this.mnuFind.Click += new System.Windows.RoutedEventHandler(this.mnuFind_Click);
     
     #line default
     #line hidden
     return;
     case 140:
     this.mnuFindNext = ((System.Windows.Controls.MenuItem)(target));
     
     #line 545 "..\..\WndNote.xaml"
     this.mnuFindNext.Click += new System.Windows.RoutedEventHandler(this.mnuFindNext_Click);
     
     #line default
     #line hidden
     return;
     case 141:
     this.mnuReplace = ((System.Windows.Controls.MenuItem)(target));
     
     #line 550 "..\..\WndNote.xaml"
     this.mnuReplace.Click += new System.Windows.RoutedEventHandler(this.mnuReplace_Click);
     
     #line default
     #line hidden
     return;
     case 142:
     this.toolStripMenuItem56 = ((System.Windows.Controls.Separator)(target));
     return;
     case 143:
     this.mnuSearchWeb = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 144:
     this.mnuPostOn = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 145:
     this.mnuInsertPost = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 146:
     this.toolStripMenuItem57 = ((System.Windows.Controls.Separator)(target));
     return;
     case 147:
     this.mnuSelectAll = ((System.Windows.Controls.MenuItem)(target));
     
     #line 572 "..\..\WndNote.xaml"
     this.mnuSelectAll.Click += new System.Windows.RoutedEventHandler(this.mnuSelectAll_Click);
     
     #line default
     #line hidden
     return;
     case 148:
     this.toolStripSeparator18 = ((System.Windows.Controls.Separator)(target));
     return;
     case 149:
     this.mnuSortAscending = ((System.Windows.Controls.MenuItem)(target));
     
     #line 578 "..\..\WndNote.xaml"
     this.mnuSortAscending.Click += new System.Windows.RoutedEventHandler(this.mnuSortAscending_Click);
     
     #line default
     #line hidden
     return;
     case 150:
     this.mnuSortDescending = ((System.Windows.Controls.MenuItem)(target));
     
     #line 583 "..\..\WndNote.xaml"
     this.mnuSortDescending.Click += new System.Windows.RoutedEventHandler(this.mnuSortDescending_Click);
     
     #line default
     #line hidden
     return;
     case 151:
     this.EditTargetSkinless = ((System.Windows.Controls.Border)(target));
     return;
     case 152:
     this.ctmBullets = ((System.Windows.Controls.ContextMenu)(target));
     return;
     case 153:
     this.mnuNoBullets = ((System.Windows.Controls.MenuItem)(target));
     
     #line 601 "..\..\WndNote.xaml"
     this.mnuNoBullets.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 154:
     this.mnuBullets = ((System.Windows.Controls.MenuItem)(target));
     
     #line 602 "..\..\WndNote.xaml"
     this.mnuBullets.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 155:
     this.mnuArabicPoint = ((System.Windows.Controls.MenuItem)(target));
     
     #line 603 "..\..\WndNote.xaml"
     this.mnuArabicPoint.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 156:
     this.mnuArabicParts = ((System.Windows.Controls.MenuItem)(target));
     
     #line 604 "..\..\WndNote.xaml"
     this.mnuArabicParts.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 157:
     this.mnuSmallLettersPoint = ((System.Windows.Controls.MenuItem)(target));
     
     #line 605 "..\..\WndNote.xaml"
     this.mnuSmallLettersPoint.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 158:
     this.mnuSmallLettersPart = ((System.Windows.Controls.MenuItem)(target));
     
     #line 606 "..\..\WndNote.xaml"
     this.mnuSmallLettersPart.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 159:
     this.mnuBigLettersPoint = ((System.Windows.Controls.MenuItem)(target));
     
     #line 607 "..\..\WndNote.xaml"
     this.mnuBigLettersPoint.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 160:
     this.mnuBigLettersParts = ((System.Windows.Controls.MenuItem)(target));
     
     #line 608 "..\..\WndNote.xaml"
     this.mnuBigLettersParts.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 161:
     this.mnuLatinSmall = ((System.Windows.Controls.MenuItem)(target));
     
     #line 609 "..\..\WndNote.xaml"
     this.mnuLatinSmall.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 162:
     this.mnuLatinBig = ((System.Windows.Controls.MenuItem)(target));
     
     #line 610 "..\..\WndNote.xaml"
     this.mnuLatinBig.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 163:
     this.ctmFontSize = ((System.Windows.Controls.ContextMenu)(target));
     return;
     case 164:
     
     #line 622 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 165:
     
     #line 623 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 166:
     
     #line 624 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 167:
     
     #line 625 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 168:
     
     #line 626 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 169:
     
     #line 627 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 170:
     
     #line 628 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 171:
     
     #line 629 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 172:
     
     #line 630 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 173:
     
     #line 631 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 174:
     
     #line 632 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 175:
     
     #line 633 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 176:
     
     #line 634 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 177:
     
     #line 635 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 178:
     
     #line 636 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 179:
     
     #line 637 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 180:
     this.ctmFontColor = ((System.Windows.Controls.ContextMenu)(target));
     return;
     case 181:
     this.mnuColorAutomatic = ((System.Windows.Controls.MenuItem)(target));
     
     #line 649 "..\..\WndNote.xaml"
     this.mnuColorAutomatic.Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 182:
     
     #line 650 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 183:
     
     #line 651 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 184:
     
     #line 652 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 185:
     
     #line 653 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 186:
     
     #line 654 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 187:
     
     #line 655 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 188:
     
     #line 656 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 189:
     
     #line 657 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 190:
     
     #line 658 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 191:
     
     #line 659 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 192:
     
     #line 660 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 193:
     
     #line 661 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 194:
     
     #line 662 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 195:
     
     #line 663 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 196:
     
     #line 664 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 197:
     
     #line 665 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 198:
     this.ctmFontHighlight = ((System.Windows.Controls.ContextMenu)(target));
     return;
     case 199:
     this.mnuNoHighlight = ((System.Windows.Controls.MenuItem)(target));
     
     #line 677 "..\..\WndNote.xaml"
     this.mnuNoHighlight.Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 200:
     
     #line 678 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 201:
     
     #line 679 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 202:
     
     #line 680 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 203:
     
     #line 681 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 204:
     
     #line 682 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 205:
     
     #line 683 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 206:
     
     #line 684 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 207:
     
     #line 685 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 208:
     
     #line 686 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 209:
     
     #line 687 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 210:
     
     #line 688 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 211:
     
     #line 689 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 212:
     
     #line 690 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 213:
     
     #line 691 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 214:
     
     #line 692 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 215:
     
     #line 693 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 216:
     this.ctmDrop = ((System.Windows.Controls.ContextMenu)(target));
     
     #line 699 "..\..\WndNote.xaml"
     this.ctmDrop.Closed += new System.Windows.RoutedEventHandler(this.ctmDrop_Closed);
     
     #line default
     #line hidden
     return;
     case 217:
     this.mnuInsertContent = ((System.Windows.Controls.MenuItem)(target));
     
     #line 700 "..\..\WndNote.xaml"
     this.mnuInsertContent.Click += new System.Windows.RoutedEventHandler(this.mnuInsertContent_Click);
     
     #line default
     #line hidden
     return;
     case 218:
     this.mnuInsertObject = ((System.Windows.Controls.MenuItem)(target));
     
     #line 701 "..\..\WndNote.xaml"
     this.mnuInsertObject.Click += new System.Windows.RoutedEventHandler(this.mnuInsertObject_Click);
     
     #line default
     #line hidden
     return;
     case 219:
     this.mnuInsertLink = ((System.Windows.Controls.MenuItem)(target));
     
     #line 702 "..\..\WndNote.xaml"
     this.mnuInsertLink.Click += new System.Windows.RoutedEventHandler(this.mnuInsertLink_Click);
     
     #line default
     #line hidden
     return;
     case 220:
     this.lnSizeNorth = ((System.Windows.Shapes.Line)(target));
     
     #line 707 "..\..\WndNote.xaml"
     this.lnSizeNorth.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeNorth);
     
     #line default
     #line hidden
     return;
     case 221:
     this.lnSizeSouth = ((System.Windows.Shapes.Line)(target));
     
     #line 717 "..\..\WndNote.xaml"
     this.lnSizeSouth.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeSouth);
     
     #line default
     #line hidden
     return;
     case 222:
     this.lnSizeWest = ((System.Windows.Shapes.Line)(target));
     
     #line 728 "..\..\WndNote.xaml"
     this.lnSizeWest.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeWest);
     
     #line default
     #line hidden
     return;
     case 223:
     this.lnSizeEast = ((System.Windows.Shapes.Line)(target));
     
     #line 738 "..\..\WndNote.xaml"
     this.lnSizeEast.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeEast);
     
     #line default
     #line hidden
     return;
     case 224:
     this.rectSizeNorthWest = ((System.Windows.Shapes.Rectangle)(target));
     
     #line 749 "..\..\WndNote.xaml"
     this.rectSizeNorthWest.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeNorthWest);
     
     #line default
     #line hidden
     return;
     case 225:
     this.rectSizeNorthEast = ((System.Windows.Shapes.Rectangle)(target));
     
     #line 758 "..\..\WndNote.xaml"
     this.rectSizeNorthEast.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeNorthEast);
     
     #line default
     #line hidden
     return;
     case 226:
     this.rectSizeSouthWest = ((System.Windows.Shapes.Rectangle)(target));
     
     #line 767 "..\..\WndNote.xaml"
     this.rectSizeSouthWest.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeSouthWest);
     
     #line default
     #line hidden
     return;
     case 227:
     this.gripSize = ((System.Windows.Controls.Primitives.ResizeGrip)(target));
     
     #line 776 "..\..\WndNote.xaml"
     this.gripSize.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeSouthEast);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Exemplo n.º 8
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 2:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.Main = ((System.Windows.VisualStateGroup)(target));
     return;
     case 4:
     this.RoomView = ((System.Windows.VisualState)(target));
     return;
     case 5:
     this.SettingsView = ((System.Windows.VisualState)(target));
     return;
     case 6:
     this.NotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
     return;
     case 7:
     this.HeaderArea = ((System.Windows.Controls.Grid)(target));
     
     #line 70 "..\..\MainWindow.xaml"
     this.HeaderArea.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.HeaderArea_OnMouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 8:
     this.MinimizeButton = ((System.Windows.Controls.Button)(target));
     return;
     case 9:
     this.MaximizeButton = ((System.Windows.Controls.Button)(target));
     return;
     case 10:
     this.RestoreButton = ((System.Windows.Controls.Button)(target));
     return;
     case 11:
     this.CloseButton = ((System.Windows.Controls.Button)(target));
     return;
     case 12:
     this.LeftDockPanel = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 13:
     this.RightDockPanel = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 14:
     this.SettingsPanel = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 15:
     this.TopResizeRectangle = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 16:
     this.LeftResizeRectangle = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 17:
     this.BottomResizeRectangle = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 18:
     this.RightResizeRectangle = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 19:
     this.TopLeftResizeRectangle = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 20:
     this.TopRightResizeRectangle = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 21:
     this.BottomRightResizeRectangle = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 22:
     this.BottomLeftResizeRectangle = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 23:
     this.FormResizeGrip = ((System.Windows.Controls.Primitives.ResizeGrip)(target));
     return;
     case 24:
     this.OverlayCanvas = ((System.Windows.Controls.Canvas)(target));
     return;
     }
     this._contentLoaded = true;
 }
Exemplo n.º 9
0
 private void ContentWindow_ContentRendered(object sender, EventArgs e)
 {
     _resizeGrip = ((Window)sender).FindChildInVisualTree<ResizeGrip>();
     // hack to make sure the border is shown after content is shown
     UpdatePosn();
 }
Exemplo n.º 10
0
 void _contentWindow_ContentRendered(object sender, EventArgs e)
 {
     _resizeGrip = _contentWindow.FindChildInVisualTree<ResizeGrip>();
     // hack to make sure the border is shown after content is shown
     _contentShown = true;
     if (_borderWindow != null)
         _borderWindow.RepositionToContent(new WindowInteropHelper(_contentWindow).Handle, _hideOverride);
 }
Exemplo n.º 11
0
        private void DetatchWindow()
        {
            Debug.WriteLine("ChromeWorker detatched");
            _resizeGrip = null;
            if (_borderWindow != null)
            {
                var toFoxus = _borderWindow.Owner;
                _borderWindow.Owner = null;
                _borderWindow.Close();
                _borderWindow = null;

                // hack to not let owner window move to background for some reason
                if (toFoxus != null) { toFoxus.Activate(); }
            }
            if (_contentWindow != null)
            {
                _contentWindow.Closed -= _contentWindow_Closed;
                _contentWindow.ContentRendered -= _contentWindow_ContentRendered;
                _contentWindow.SourceInitialized -= window_SourceInitialized;
                _contentWindow = null;
            }
        }
        // Token: 0x06005F6F RID: 24431 RVA: 0x001ABEAC File Offset: 0x001AA0AC
        private static void _OnWindowServiceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ResizeGrip resizeGrip = d as ResizeGrip;

            resizeGrip.OnWindowServiceChanged(e.OldValue as Window, e.NewValue as Window);
        }
 private void GetInnerElementReferences()
 {
     _scrollViewer = (_listBox.Template.FindName("Border", _listBox) as Border).Child as ScrollViewer;
     _resizeGrip = _scrollViewer.Template.FindName("ResizeGrip", _scrollViewer) as ResizeGrip;
     _scrollBar = _scrollViewer.Template.FindName("PART_VerticalScrollBar", _scrollViewer) as ScrollBar;
 }