Exemple #1
0
        private static void OnDropDownToolTipPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RibbonSplitButton splitButton = (RibbonSplitButton)d;

            if (splitButton.PartToggleButton != null)
            {
                splitButton.PartToggleButton.CoerceValue(FrameworkElement.ToolTipProperty);
            }
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.undo = ((Microsoft.Windows.Controls.Ribbon.RibbonSplitButton)(target));
         return;
     }
     this._contentLoaded = true;
 }
Exemple #3
0
        private static void OnIsCheckedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RibbonSplitButton splitButton = (RibbonSplitButton)d;

            if (splitButton.IsCheckable)
            {
                RibbonSplitButtonAutomationPeer peer = UIElementAutomationPeer.FromElement(splitButton) as RibbonSplitButtonAutomationPeer;
                if (peer != null)
                {
                    peer.RaiseToggleStatePropertyChangedEvent((bool)e.OldValue, (bool)e.NewValue);
                }
            }
        }
        private static Control MapQatDataToControl(VM.QatItem qatItem)
        {
            string typeName = qatItem.Instance.GetType().Name;
            Control control = null;

            switch (typeName)
            {
                case "ButtonData":
                    {
                        control = new RibbonButton();
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "ToggleButtonData":
                    {
                        control = new RibbonToggleButton();
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "RadioButtonData":
                    {
                        control = new RibbonRadioButton();
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "CheckBoxData":
                    {
                        control = new RibbonCheckBox();
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "TextBoxData":
                    {
                        control = new RibbonTextBox();
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "MenuButtonData":
                    {
                        control = new RibbonMenuButton();
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "SplitButtonData":
                    {
                        if (!qatItem.IsSplitHeader)
                        {
                            control = new RibbonSplitButton();
                        }
                        else
                        {
                            VM.SplitButtonData splitButtonData = (VM.SplitButtonData)qatItem.Instance;
                            if (splitButtonData.IsCheckable)
                            {
                                control = new RibbonToggleButton();
                            }
                            else
                            {
                                control = new RibbonButton();
                            }
                        }
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "ComboBoxData":
                    {
                        control = new RibbonComboBox();
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "MenuItemData":
                    {
                        VM.MenuItemData menuItemData = (VM.MenuItemData)qatItem.Instance;
                        if (menuItemData.ControlDataCollection.Count > 0)
                        {
                            control = new RibbonMenuButton();
                        }
                        else
                        {
                            control = new RibbonButton();
                        }
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "SplitMenuItemData":
                    {
                        VM.SplitMenuItemData splitMenuItemData = (VM.SplitMenuItemData)qatItem.Instance;
                        if (!qatItem.IsSplitHeader)
                        {
                            if (splitMenuItemData.ControlDataCollection.Count > 0)
                            {
                                control = new RibbonSplitButton();
                            }
                            else if (splitMenuItemData.IsCheckable)
                            {
                                control = new RibbonToggleButton();
                            }
                            else
                            {
                                control = new RibbonButton();
                            }
                        }
                        else
                        {
                            control = new RibbonToggleButton();
                        }
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "GalleryData":
                    {
                        RibbonGallery gallery = new RibbonGallery();
                        RibbonMenuButton menuButton = new RibbonMenuButton();
                        menuButton.ItemsSource = new object[] { gallery };

                        control = menuButton;
                        control.DataContext = qatItem.Instance;
                        break;
                    }
                case "GroupData":
                    {
                        control = new RibbonGroup();
                        control.DataContext = qatItem.Instance;
                        break;
                    }
            }

            return control;
        }
Exemple #5
0
 public static void SetKeyTipPlacementForSplitButtonHeader(RibbonSplitButton splitButton,
     ActivatingKeyTipEventArgs e,
     UIElement mediumPlacementTarget)
 {
     bool dropDownKeyTipSet = !string.IsNullOrEmpty(splitButton.KeyTip);
     if (splitButton.IsInQuickAccessToolBar)
     {
         SetDefaultQatKeyTipPlacement(e);
     }
     else
     {
         e.KeyTipHorizontalPlacement = KeyTipHorizontalPlacement.KeyTipCenterAtTargetCenter;
         e.KeyTipVerticalPlacement = KeyTipVerticalPlacement.KeyTipCenterAtTargetCenter;
         e.KeyTipHorizontalOffset = e.KeyTipVerticalOffset = 0;
         RibbonControlSizeDefinition controlSizeDefinition = splitButton.ControlSizeDefinition;
         if (controlSizeDefinition != null)
         {
             if (controlSizeDefinition.IsLabelVisible)
             {
                 if (controlSizeDefinition.ImageSize == RibbonImageSize.Large)
                 {
                     e.KeyTipVerticalPlacement = KeyTipVerticalPlacement.KeyTipCenterAtTargetTop;
                 }
                 else if (controlSizeDefinition.ImageSize == RibbonImageSize.Small)
                 {
                     e.KeyTipHorizontalPlacement = KeyTipHorizontalPlacement.KeyTipLeftAtTargetCenter;
                     e.PlacementTarget = mediumPlacementTarget;
                 }
             }
             else
             {
                 if (controlSizeDefinition.ImageSize == RibbonImageSize.Small)
                 {
                     if (dropDownKeyTipSet)
                     {
                         e.KeyTipHorizontalPlacement = KeyTipHorizontalPlacement.KeyTipCenterAtTargetCenter;
                     }
                     else
                     {
                         e.KeyTipHorizontalPlacement = KeyTipHorizontalPlacement.KeyTipLeftAtTargetCenter;
                     }
                 }
             }
         }
         else
         {
             e.KeyTipVerticalPlacement = KeyTipVerticalPlacement.KeyTipCenterAtTargetTop;
         }
     }
 }
Exemple #6
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 6 "..\..\..\MainWindow.xaml"
     ((CAGA.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     
     #line 6 "..\..\..\MainWindow.xaml"
     ((CAGA.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.RibbonWindow_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.mainGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.ribbon = ((Microsoft.Windows.Controls.Ribbon.Ribbon)(target));
     return;
     case 4:
     this.RibbonMapGrp = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 5:
     this.OpenMapBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 24 "..\..\..\MainWindow.xaml"
     this.OpenMapBtn.Click += new System.Windows.RoutedEventHandler(this.OpenMapBtn_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.SaveMapBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 25 "..\..\..\MainWindow.xaml"
     this.SaveMapBtn.Click += new System.Windows.RoutedEventHandler(this.SaveMapBtn_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.RibbonLayersGrp = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 8:
     this.AddLayerBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 29 "..\..\..\MainWindow.xaml"
     this.AddLayerBtn.Click += new System.Windows.RoutedEventHandler(this.AddLayerBtn_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.RemoveLayerBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 30 "..\..\..\MainWindow.xaml"
     this.RemoveLayerBtn.Click += new System.Windows.RoutedEventHandler(this.RemoveLayerBtn_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.RibbonNavGrp = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 11:
     this.PanMapBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonToggleButton)(target));
     
     #line 33 "..\..\..\MainWindow.xaml"
     this.PanMapBtn.Checked += new System.Windows.RoutedEventHandler(this.PanMapBtn_Checked);
     
     #line default
     #line hidden
     
     #line 33 "..\..\..\MainWindow.xaml"
     this.PanMapBtn.Unchecked += new System.Windows.RoutedEventHandler(this.PanMapBtn_Unchecked);
     
     #line default
     #line hidden
     return;
     case 12:
     this.ZoomInBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonToggleButton)(target));
     
     #line 34 "..\..\..\MainWindow.xaml"
     this.ZoomInBtn.Checked += new System.Windows.RoutedEventHandler(this.ZoomInBtn_Checked);
     
     #line default
     #line hidden
     
     #line 34 "..\..\..\MainWindow.xaml"
     this.ZoomInBtn.Unchecked += new System.Windows.RoutedEventHandler(this.ZoomInBtn_Unchecked);
     
     #line default
     #line hidden
     return;
     case 13:
     this.ZoomOutBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonToggleButton)(target));
     
     #line 35 "..\..\..\MainWindow.xaml"
     this.ZoomOutBtn.Checked += new System.Windows.RoutedEventHandler(this.ZoomOutBtn_Checked);
     
     #line default
     #line hidden
     
     #line 35 "..\..\..\MainWindow.xaml"
     this.ZoomOutBtn.Unchecked += new System.Windows.RoutedEventHandler(this.ZoomOutBtn_Unchecked);
     
     #line default
     #line hidden
     return;
     case 14:
     this.ZoomToExtentBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 36 "..\..\..\MainWindow.xaml"
     this.ZoomToExtentBtn.Click += new System.Windows.RoutedEventHandler(this.ZoomToExtentBtn_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     this.ZoomToPrevBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 37 "..\..\..\MainWindow.xaml"
     this.ZoomToPrevBtn.Click += new System.Windows.RoutedEventHandler(this.ZoomToPrevBtn_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.ZoomToNextBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 38 "..\..\..\MainWindow.xaml"
     this.ZoomToNextBtn.Click += new System.Windows.RoutedEventHandler(this.ZoomToNextBtn_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.ZoomToLayerBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 39 "..\..\..\MainWindow.xaml"
     this.ZoomToLayerBtn.Click += new System.Windows.RoutedEventHandler(this.ZoomToLayerBtn_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.RibbonSelectionGrp = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 19:
     this.SelectFeatureBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonSplitButton)(target));
     
     #line 42 "..\..\..\MainWindow.xaml"
     this.SelectFeatureBtn.Click += new System.Windows.RoutedEventHandler(this.SelectFeatureBtn_Click);
     
     #line default
     #line hidden
     return;
     case 20:
     this.SelectFeatureGallery = ((Microsoft.Windows.Controls.Ribbon.RibbonGallery)(target));
     return;
     case 21:
     this.SelByRectItem = ((Microsoft.Windows.Controls.Ribbon.RibbonGalleryItem)(target));
     
     #line 45 "..\..\..\MainWindow.xaml"
     this.SelByRectItem.Selected += new System.Windows.RoutedEventHandler(this.SelectFeatureItem_Selected);
     
     #line default
     #line hidden
     return;
     case 22:
     this.SelByPolyItem = ((Microsoft.Windows.Controls.Ribbon.RibbonGalleryItem)(target));
     
     #line 46 "..\..\..\MainWindow.xaml"
     this.SelByPolyItem.Selected += new System.Windows.RoutedEventHandler(this.SelectFeatureItem_Selected);
     
     #line default
     #line hidden
     return;
     case 23:
     this.SelByCircleItem = ((Microsoft.Windows.Controls.Ribbon.RibbonGalleryItem)(target));
     
     #line 47 "..\..\..\MainWindow.xaml"
     this.SelByCircleItem.Selected += new System.Windows.RoutedEventHandler(this.SelectFeatureItem_Selected);
     
     #line default
     #line hidden
     return;
     case 24:
     this.SelByLineItem = ((Microsoft.Windows.Controls.Ribbon.RibbonGalleryItem)(target));
     
     #line 48 "..\..\..\MainWindow.xaml"
     this.SelByLineItem.Selected += new System.Windows.RoutedEventHandler(this.SelectFeatureItem_Selected);
     
     #line default
     #line hidden
     return;
     case 25:
     this.SelectByGraphicsBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 52 "..\..\..\MainWindow.xaml"
     this.SelectByGraphicsBtn.Click += new System.Windows.RoutedEventHandler(this.SelectByGraphicsBtn_Click);
     
     #line default
     #line hidden
     return;
     case 26:
     this.UnselectFeatureBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 53 "..\..\..\MainWindow.xaml"
     this.UnselectFeatureBtn.Click += new System.Windows.RoutedEventHandler(this.UnselectFeatureBtn_Click);
     
     #line default
     #line hidden
     return;
     case 27:
     this.RibbonToolsGrp = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 28:
     this.IdentifyFeatureBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonToggleButton)(target));
     
     #line 56 "..\..\..\MainWindow.xaml"
     this.IdentifyFeatureBtn.Checked += new System.Windows.RoutedEventHandler(this.IdentifyFeatureBtn_Checked);
     
     #line default
     #line hidden
     
     #line 56 "..\..\..\MainWindow.xaml"
     this.IdentifyFeatureBtn.Unchecked += new System.Windows.RoutedEventHandler(this.IdentifyFeatureBtn_Unchecked);
     
     #line default
     #line hidden
     return;
     case 29:
     this.AttrTableBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 57 "..\..\..\MainWindow.xaml"
     this.AttrTableBtn.Click += new System.Windows.RoutedEventHandler(this.AttrTableBtn_Click);
     
     #line default
     #line hidden
     return;
     case 30:
     this.RibbonDrawingGrp = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 31:
     this.DrawPolygonBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonToggleButton)(target));
     
     #line 60 "..\..\..\MainWindow.xaml"
     this.DrawPolygonBtn.Checked += new System.Windows.RoutedEventHandler(this.DrawPolygonBtn_Checked);
     
     #line default
     #line hidden
     
     #line 60 "..\..\..\MainWindow.xaml"
     this.DrawPolygonBtn.Unchecked += new System.Windows.RoutedEventHandler(this.DrawPolygonBtn_Unchecked);
     
     #line default
     #line hidden
     return;
     case 32:
     this.RibbonDlgMgrGrp = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 33:
     this.ToggleDlgBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 66 "..\..\..\MainWindow.xaml"
     this.ToggleDlgBtn.Click += new System.Windows.RoutedEventHandler(this.ToggleDlgBtn_Click);
     
     #line default
     #line hidden
     return;
     case 34:
     this.RibbonSpeechRecGrp = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 35:
     this.ToggleSpeechBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 69 "..\..\..\MainWindow.xaml"
     this.ToggleSpeechBtn.Click += new System.Windows.RoutedEventHandler(this.ToggleSpeechBtn_Click);
     
     #line default
     #line hidden
     return;
     case 36:
     this.SimSpeechBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 70 "..\..\..\MainWindow.xaml"
     this.SimSpeechBtn.Click += new System.Windows.RoutedEventHandler(this.SimSpeechBtn_Click);
     
     #line default
     #line hidden
     return;
     case 37:
     this.dockManager = ((AvalonDock.DockingManager)(target));
     return;
     case 38:
     this.LayersPanel = ((AvalonDock.DockableContent)(target));
     return;
     case 39:
     this.tocGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 40:
     
     #line 84 "..\..\..\MainWindow.xaml"
     ((AvalonDock.DocumentPane)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DocumentPane_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 41:
     this.MapPanel = ((AvalonDock.DocumentContent)(target));
     return;
     case 42:
     this.mapGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 43:
     this.LayoutPanel = ((AvalonDock.DocumentContent)(target));
     return;
     case 44:
     this.layoutGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 45:
     this.KinectCtrlPanel = ((AvalonDock.DockablePane)(target));
     return;
     case 46:
     this.ColorDisplayPanel = ((AvalonDock.DockableContent)(target));
     return;
     case 47:
     this.colorDisplay = ((System.Windows.Controls.Image)(target));
     return;
     case 48:
     this.skeletonCanvas = ((System.Windows.Controls.Canvas)(target));
     return;
     case 49:
     this.DepthDisplayPanel = ((AvalonDock.DockableContent)(target));
     return;
     case 50:
     this.depthDisplay = ((System.Windows.Controls.Image)(target));
     return;
     case 51:
     this.DevCtrlPanel = ((AvalonDock.DockablePane)(target));
     return;
     case 52:
     this.statusTB = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }
 /// <summary>
 ///   Initialize Automation Peer for RibbonSplitButton
 /// </summary>
 public RibbonSplitButtonAutomationPeer(RibbonSplitButton owner)
     : base(owner)
 {
 }
 private void moveOthersMenuItemBack(RibbonSplitButton button)
 {
     RibbonMenuItem tmprami = null;
     foreach (RibbonMenuItem rami in button.Items) {
         if (rami.Header.Equals("Others")) {
             tmprami = rami;
             break;
         }
     }
     if (tmprami != null) {
         button.Items.Remove(tmprami);
         button.Items.Insert(button.Items.Count, tmprami);
     }
 }
Exemple #9
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 36 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.RibbonCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 36 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OnPaste);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 39 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.RibbonCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 39 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OnCut);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 42 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.RibbonCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 42 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OnCopy);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 44 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.RibbonCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 45 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.RibbonCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 47 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.RibbonCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 48 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.RibbonCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 50 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.RibbonCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 51 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.RibbonCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 7:
     
     #line 53 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.RibbonCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 54 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.RibbonCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 56 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.OpenCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 57 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OpenCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 59 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.RibbonCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 60 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.RibbonCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 10:
     
     #line 62 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.RibbonCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 63 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.RibbonCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 11:
     
     #line 65 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.RibbonCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 66 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.RibbonCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 68 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.RibbonCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 69 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.RibbonCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 13:
     
     #line 71 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.RibbonCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 72 "..\..\..\..\..\Control\Aggregate\MainRibbon.xaml"
     ((Microsoft.Windows.Controls.Ribbon.RibbonCommand)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.RibbonCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 14:
     this.ApplicationRibbon = ((Microsoft.Windows.Controls.Ribbon.Ribbon)(target));
     return;
     case 15:
     this.TabHome = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target));
     return;
     case 16:
     this.GroupClipBoard = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 17:
     this.ButtonPaste = ((Microsoft.Windows.Controls.Ribbon.RibbonSplitButton)(target));
     return;
     case 18:
     this.ButtonCut = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     return;
     case 19:
     this.ButtonCopy = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     return;
     case 20:
     this.GroupShape = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 21:
     this.ComboBoxShape = ((Microsoft.Windows.Controls.Ribbon.RibbonComboBox)(target));
     return;
     case 22:
     this.GroupEnamels = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 23:
     this.ComboBoxEnamels = ((Microsoft.Windows.Controls.Ribbon.RibbonComboBox)(target));
     return;
     case 24:
     this.TabInsert = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target));
     return;
     }
     this._contentLoaded = true;
 }
Exemple #10
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.RibbonWindow = ((WpfRibbon.MainWindow)(target));
                return;

            case 2:
                this.Ribbon = ((Microsoft.Windows.Controls.Ribbon.Ribbon)(target));
                return;

            case 3:
                this.ButtonSave = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 4:
                this.ButtonPrint = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 5:
                this.ButtonQ3 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 6:
                this.menuAplic = ((Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenu)(target));
                return;

            case 7:
                this.MenuItem1 = ((Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target));
                return;

            case 8:
                this.MenuSair = ((Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target));

            #line 51 "..\..\..\..\View\MainWindow.xaml"
                this.MenuSair.Click += new System.Windows.RoutedEventHandler(this.MenuSair_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.MenuFechar = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 61 "..\..\..\..\View\MainWindow.xaml"
                this.MenuFechar.Click += new System.Windows.RoutedEventHandler(this.MenuFechar_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.HomeTab = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target));
                return;

            case 11:
                this.Group1 = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 12:
                this.Button1 = ((Microsoft.Windows.Controls.Ribbon.RibbonSplitButton)(target));

            #line 80 "..\..\..\..\View\MainWindow.xaml"
                this.Button1.Click += new System.Windows.RoutedEventHandler(this.Button1_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.Button2 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 83 "..\..\..\..\View\MainWindow.xaml"
                this.Button2.Click += new System.Windows.RoutedEventHandler(this.Button2_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.Button3 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 87 "..\..\..\..\View\MainWindow.xaml"
                this.Button3.Click += new System.Windows.RoutedEventHandler(this.Button3_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.Button4 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 90 "..\..\..\..\View\MainWindow.xaml"
                this.Button4.Click += new System.Windows.RoutedEventHandler(this.Button4_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.ButtonEnd = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 17:
                this.ButtonCargo = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 18:
                this.ButtonEstadoCivil = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 19:

            #line 123 "..\..\..\..\View\MainWindow.xaml"
                ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.Button2_Click);

            #line default
            #line hidden
                return;

            case 20:

            #line 126 "..\..\..\..\View\MainWindow.xaml"
                ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.Button3_Click);

            #line default
            #line hidden
                return;

            case 21:

            #line 129 "..\..\..\..\View\MainWindow.xaml"
                ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.Button4_Click);

            #line default
            #line hidden
                return;

            case 22:

            #line 173 "..\..\..\..\View\MainWindow.xaml"
                ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.Button2_Click);

            #line default
            #line hidden
                return;

            case 23:

            #line 176 "..\..\..\..\View\MainWindow.xaml"
                ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.Button3_Click);

            #line default
            #line hidden
                return;

            case 24:

            #line 179 "..\..\..\..\View\MainWindow.xaml"
                ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.Button4_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.Requisicao = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 26:
                this.TabGrid = ((System.Windows.Controls.TabItem)(target));
                return;

            case 27:
                this.dataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 28:
                this.TabOp = ((System.Windows.Controls.TabItem)(target));
                return;

            case 29:
                this.Confirma = ((System.Windows.Controls.Button)(target));

            #line 272 "..\..\..\..\View\MainWindow.xaml"
                this.Confirma.Click += new System.Windows.RoutedEventHandler(this.Confirma_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 31:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 32:
                this.label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 33:
                this.textBox1 = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 35:
                this.textBox3 = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }