Inheritance: System.Windows.Controls.Control
Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.view1 = ((HelixToolkit.SharpDX.Wpf.Viewport3DX)(target));
                return;

            case 2:
                this.model = ((HelixToolkit.SharpDX.Wpf.MeshGeometryModel3D)(target));
                return;

            case 3:
                this.floor = ((HelixToolkit.SharpDX.Wpf.MeshGeometryModel3D)(target));
                return;

            case 4:
                this.shadingPanel = ((System.Windows.Controls.Expander)(target));
                return;

            case 5:
                this.propertyGrid = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            if (_newItemTypesComboBox != null)
            {
                _newItemTypesComboBox.Loaded -= new RoutedEventHandler(this.NewItemTypesComboBox_Loaded);
            }
            _newItemTypesComboBox = GetTemplateChild(PART_NewItemTypesComboBox) as ComboBox;
            if (_newItemTypesComboBox != null)
            {
                _newItemTypesComboBox.Loaded += new RoutedEventHandler(this.NewItemTypesComboBox_Loaded);
            }

            _listBox = this.GetTemplateChild(PART_ListBox) as ListBox;

            if (_propertyGrid != null)
            {
                _propertyGrid.PropertyValueChanged -= this.PropertyGrid_PropertyValueChanged;
            }
            _propertyGrid = GetTemplateChild(PART_PropertyGrid) as PropertyGrid.PropertyGrid;
            if (_propertyGrid != null)
            {
                _propertyGrid.PropertyValueChanged += this.PropertyGrid_PropertyValueChanged;
            }
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.MissionProperty = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
         return;
     }
     this._contentLoaded = true;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.demo = ((Xceed.Wpf.Toolkit.LiveExplorer.Samples.PropertyGrid.Views.PropertyGridAttributesView)(target));
                return;

            case 2:
                this._propertyGrid = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.VplPropertyGrid = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
                return;

            case 2:
                this.VplControl = ((TUM.CMS.VplControl.Core.VplControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #6
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PropertyGrid = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
                return;

            case 2:
                this.MyDesigner = ((DiagramDesigner.DesignerCanvas)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.OptionsPropertyGrid = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));

            #line 17 "..\..\..\..\..\Views\Containers\OptionsControl.xaml"
                this.OptionsPropertyGrid.DataContextChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.OptionsPropertyGrid_OnDataContextChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemple #8
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this._propertyGrid = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));

            #line 53 "..\..\..\..\..\..\Samples\PropertyGrid\Views\PropertyGridPropertyItemStyleView.xaml"
                this._propertyGrid.PreparePropertyItem += new Xceed.Wpf.Toolkit.PropertyGrid.PropertyItemEventHandler(this.OnPreparePropertyItem);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemple #9
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Documents = ((AvalonDock.Layout.LayoutDocumentPane)(target));
                return;

            case 2:
                this.Results = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 3:
                this.PropertyGrid = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #10
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 5 "..\..\..\..\Devices\UI\DeviceConfigOne.xaml"
                ((Mengsk.Device.Devices.UI.DeviceConfigOne)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.cbbBuses = ((System.Windows.Controls.ComboBox)(target));

            #line 14 "..\..\..\..\Devices\UI\DeviceConfigOne.xaml"
                this.cbbBuses.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbbBuses_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.lstBuses = ((System.Windows.Controls.ListBox)(target));
                return;

            case 5:
                this.pgDeviceInfo = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
                return;

            case 6:
                this.btnOK = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\..\..\Devices\UI\DeviceConfigOne.xaml"
                this.btnOK.Click += new System.Windows.RoutedEventHandler(this.btnOK_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this._this = ((BlackjackStrategy.MainWindow)(target));
                return;

            case 2:
                this.propGrid = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
                return;

            case 3:
                this.btnSolve = ((System.Windows.Controls.Button)(target));

            #line 105 "..\..\MainWindow.xaml"
                this.btnSolve.Click += new System.Windows.RoutedEventHandler(this.btnSolve_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.btnShowKnown = ((System.Windows.Controls.Button)(target));

            #line 108 "..\..\MainWindow.xaml"
                this.btnShowKnown.Click += new System.Windows.RoutedEventHandler(this.btnShowKnown_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.gaResultTB = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.canvas = ((System.Windows.Controls.Canvas)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.btnLoadStrategy = ((System.Windows.Controls.Button)(target));

            #line 8 "UI\StrategySetter\StrategySetterWindow.xaml"
                this.btnLoadStrategy.Click += new System.Windows.RoutedEventHandler(this.btnLoadStrategy_Click);

            #line default
            #line hidden
                return;

            case 2:
                this._StrategyPropertyGrid = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden

            #line 16 "..\..\MainWindow.xaml"
                ((Gujian3Helper.MainWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.propGrid = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
                return;

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

            case 4:
                this.rabRead = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 5:
                this.chkLockParam = ((System.Windows.Controls.CheckBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #14
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 50 "..\..\..\..\..\..\Samples\PropertyGrid\Views\PropertyGridSelectedObjectView.xaml"
                ((System.Windows.Controls.Button)(target)).GotFocus += new System.Windows.RoutedEventHandler(this.OnControlGetFocus);

            #line default
            #line hidden
                return;

            case 2:

            #line 51 "..\..\..\..\..\..\Samples\PropertyGrid\Views\PropertyGridSelectedObjectView.xaml"
                ((System.Windows.Controls.TextBox)(target)).GotFocus += new System.Windows.RoutedEventHandler(this.OnControlGetFocus);

            #line default
            #line hidden
                return;

            case 3:

            #line 52 "..\..\..\..\..\..\Samples\PropertyGrid\Views\PropertyGridSelectedObjectView.xaml"
                ((System.Windows.Controls.CheckBox)(target)).GotFocus += new System.Windows.RoutedEventHandler(this.OnControlGetFocus);

            #line default
            #line hidden
                return;

            case 4:
                this._propertyGrid = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #15
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 20 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.Add_Click);

            #line default
            #line hidden
                return;

            case 2:

            #line 21 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.Load_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.PG = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
                return;

            case 4:
                this.DGV = ((Xceed.Wpf.DataGrid.DataGridControl)(target));
                return;

            case 6:
                this.HelixView = ((HelixToolkit.Wpf.HelixViewport3D)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #16
0
 public override object FillPropertyGridFromState(object ClassInstance, Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid SelectedPgrid)
 {
     return(null);
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.btnLoadStrategy = ((System.Windows.Controls.Button)(target));
     
     #line 8 "UI\StrategySetter\StrategySetterWindow.xaml"
     this.btnLoadStrategy.Click += new System.Windows.RoutedEventHandler(this.btnLoadStrategy_Click);
     
     #line default
     #line hidden
     return;
     case 2:
     this._StrategyPropertyGrid = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
     return;
     }
     this._contentLoaded = true;
 }
Exemple #18
0
        internal static PropertyItem CreatePropertyItem(PropertyDescriptor property, object instance, PropertyGrid grid, string bindingPath, int level)
        {
            PropertyItem item = CreatePropertyItem(property, instance, grid, bindingPath);

            item.Level = level;
            return(item);
        }
        public virtual void ClearChildrenPropertyItem(PropertyItemBase propertyItem, object item)
        {
            propertyItem.ParentNode = null;

            PropertyGrid.RaiseClearPropertyItemEvent(( UIElement )PropertyContainer, propertyItem, item);
        }
Exemple #20
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.view1 = ((HelixToolkit.SharpDX.Wpf.Viewport3DX)(target));
     return;
     case 2:
     this.model = ((HelixToolkit.SharpDX.Wpf.MeshGeometryModel3D)(target));
     return;
     case 3:
     this.floor = ((HelixToolkit.SharpDX.Wpf.MeshGeometryModel3D)(target));
     return;
     case 4:
     this.shadingPanel = ((System.Windows.Controls.Expander)(target));
     return;
     case 5:
     this.propertyGrid = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
     return;
     }
     this._contentLoaded = true;
 }
Exemple #21
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\MainWindow.xaml"
                ((CodeFlowBuilder.MainWindow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Window_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:

            #line 11 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.FileOpenCommand_Executed);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.FileOpenCommand_CanExecute);

            #line default
            #line hidden
                return;

            case 3:

            #line 12 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.FileNewCommand_Executed);

            #line default
            #line hidden

            #line 12 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.FileNewCommand_CanExecute);

            #line default
            #line hidden
                return;

            case 4:

            #line 13 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.FileCloseCommand_Executed);

            #line default
            #line hidden

            #line 13 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.FileCloseCommand_CanExecute);

            #line default
            #line hidden
                return;

            case 5:

            #line 14 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.FileSaveCommand_Executed);

            #line default
            #line hidden

            #line 14 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.FileSaveCommand_CanExecute);

            #line default
            #line hidden
                return;

            case 6:

            #line 15 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.FileSaveAsCommand_Executed);

            #line default
            #line hidden

            #line 15 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.FileSaveAsCommand_CanExecute);

            #line default
            #line hidden
                return;

            case 7:

            #line 16 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Undo_Executed);

            #line default
            #line hidden

            #line 16 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.Undo_CanExecute);

            #line default
            #line hidden
                return;

            case 8:

            #line 17 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Redo_Executed);

            #line default
            #line hidden

            #line 17 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.Redo_CanExecute);

            #line default
            #line hidden
                return;

            case 9:
                this.propertyGrid = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
                return;

            case 10:
                this.lblStatus = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.cvsMain = ((System.Windows.Controls.Canvas)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\LabelControl.xaml"
                ((Bartector_Label_Editor.LabelControl)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.StackPanelMain = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 3:

            #line 19 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonNewCode_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 21 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonNewText_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 24 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonDelete_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 27 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonSave_Click);

            #line default
            #line hidden
                return;

            case 7:

            #line 28 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonLoad_Click);

            #line default
            #line hidden
                return;

            case 8:

            #line 31 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonClear_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 34 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonPrint_Click);

            #line default
            #line hidden
                return;

            case 10:

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

            #line default
            #line hidden
                return;

            case 11:

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

            #line default
            #line hidden
                return;

            case 12:

            #line 38 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonPrinterStaus_Click);

            #line default
            #line hidden
                return;

            case 13:

            #line 41 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.ComboBox)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 14:
                this.MyBoarder = ((System.Windows.Controls.Border)(target));
                return;

            case 15:
                this.MyCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 16:
                this.MypropertyGrid = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #23
0
 public override Object StateChanged(string SelectedProperty, string newValue, object ClassInstance, Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid SelectedPgrid)
 {
     return(null);
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ParentCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

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

            case 3:
                this.OverlayRect1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 4:
                this.OverlayRect2 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 5:
                this.OverlayRect3 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 6:
                this.ComponentSelector = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 7:
                this.Output = ((System.Windows.Controls.ListBox)(target));
                return;

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

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

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

            #line 68 "..\..\MainWindow.xaml"
                this.Button_VoltageProbe.Click += new System.Windows.RoutedEventHandler(this.Button_VoltageProbe_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.Button_CurrentProbe = ((System.Windows.Controls.Button)(target));

            #line 71 "..\..\MainWindow.xaml"
                this.Button_CurrentProbe.Click += new System.Windows.RoutedEventHandler(this.Button_CurrentProbe_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.Button_simulationSetting = ((System.Windows.Controls.Button)(target));

            #line 74 "..\..\MainWindow.xaml"
                this.Button_simulationSetting.Click += new System.Windows.RoutedEventHandler(this.Button_simulationSetting_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.Button_simulationOutput = ((System.Windows.Controls.Button)(target));

            #line 75 "..\..\MainWindow.xaml"
                this.Button_simulationOutput.Click += new System.Windows.RoutedEventHandler(this.Button_simulationOutput_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.SimProgress = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 15:
                this.Slider_vertical = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 78 "..\..\MainWindow.xaml"
                this.Slider_vertical.Scroll += new System.Windows.Controls.Primitives.ScrollEventHandler(this.Slider_vertical_Scroll);

            #line default
            #line hidden
                return;

            case 16:
                this.Toggle_voltage = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 17:
                this.Toggle_current = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 18:
                this.PropertyViewer = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.drawingsMainDockPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 2:
                this.addLinearDimButton = ((System.Windows.Controls.Button)(target));

            #line 26 "..\..\DrawingsUserControl.xaml"
                this.addLinearDimButton.Click += new System.Windows.RoutedEventHandler(this.AddLinearDimButton_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.exportSheetButton = ((System.Windows.Controls.Button)(target));

            #line 27 "..\..\DrawingsUserControl.xaml"
                this.exportSheetButton.Click += new System.Windows.RoutedEventHandler(this.ExportSheetButton_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.drawingsPanel1 = ((devDept.CustomControls.DrawingsPanel)(target));

            #line 30 "..\..\DrawingsUserControl.xaml"
                this.drawingsPanel1.SelectionChanged += new System.EventHandler <devDept.CustomControls.EntityEventArgs>(this.DrawingsPanel1OnSelectionChanged);

            #line default
            #line hidden

            #line 30 "..\..\DrawingsUserControl.xaml"
                this.drawingsPanel1.ViewAdded += new System.EventHandler <devDept.CustomControls.EntityEventArgs>(this.DrawingsPanel1OnViewAdded);

            #line default
            #line hidden
                return;

            case 5:
                this.rebuildButton = ((System.Windows.Controls.Button)(target));

            #line 35 "..\..\DrawingsUserControl.xaml"
                this.rebuildButton.Click += new System.Windows.RoutedEventHandler(this.RebuildButton_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.printButton = ((System.Windows.Controls.Button)(target));

            #line 36 "..\..\DrawingsUserControl.xaml"
                this.printButton.Click += new System.Windows.RoutedEventHandler(this.PrintButton_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.propertyGrid1 = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));

            #line 38 "..\..\DrawingsUserControl.xaml"
                this.propertyGrid1.PropertyValueChanged += new Xceed.Wpf.Toolkit.PropertyGrid.PropertyValueChangedEventHandler(this.PropertyGrid1_PropertyValueChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.drawings1 = ((WpfApplication1.MyDrawings)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #26
0
        internal static PropertyItem CreatePropertyItem(PropertyDescriptor property, object instance, PropertyGrid grid, string bindingPath)
        {
            PropertyItem propertyItem = new PropertyItem(instance, property, grid, bindingPath);

            var binding = new Binding(bindingPath)
            {
                Source = instance,
                ValidatesOnExceptions = true,
                ValidatesOnDataErrors = true,
                Mode = propertyItem.IsReadOnly ? BindingMode.OneWay : BindingMode.TwoWay
            };

            propertyItem.SetBinding(PropertyItem.ValueProperty, binding);

            propertyItem.Editor = PropertyGridUtilities.GetTypeEditor(propertyItem, grid.EditorDefinitions);

            return(propertyItem);
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.VplPropertyGrid = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
     return;
     case 2:
     this.VplControl = ((TUM.CMS.VplControl.Core.VplControl)(target));
     return;
     }
     this._contentLoaded = true;
 }
Exemple #28
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 20 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.Add_Click);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 21 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.Load_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.PG = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
     return;
     case 4:
     this.DGV = ((Xceed.Wpf.DataGrid.DataGridControl)(target));
     return;
     case 6:
     this.HelixView = ((HelixToolkit.Wpf.HelixViewport3D)(target));
     return;
     }
     this._contentLoaded = true;
 }
Exemple #29
0
        public Object FillPropertyGridFromPointerState(object ClassInstance, string SourceStateNumber, string SourceStateType, string SourcePropertyName, Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid SelectedPgrid)
        {
            StateP Selectedstate = new StateP();
            StateP Dynamicstate  = new StateP();

            Selectedstate = (StateP)SelectedPgrid.SelectedObject;
            Dynamicstate  = (StateP)ClassInstance;

            //Dynamicstate._SourcePropertyName = SourcePropertyName;
            //Dynamicstate._SourceStateNumber = SourceStateNumber;
            //Dynamicstate._SourceStateType = SourceStateType;
            //Dynamicstate._NextStateNumber = Selectedstate._NextStateNumber;
            return(Dynamicstate);
        }
Exemple #30
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((Styx.MainWindow)(target));

            #line 5 "..\..\..\MainWindow.xaml"
                this.mainWindow.Closed += new System.EventHandler(this.mainWindow_Closed);

            #line default
            #line hidden

            #line 5 "..\..\..\MainWindow.xaml"
                this.mainWindow.Closing += new System.ComponentModel.CancelEventHandler(this.mainWindow_Closing);

            #line default
            #line hidden
                return;

            case 2:

            #line 7 "..\..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CloseCanExecute);

            #line default
            #line hidden

            #line 7 "..\..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CloseExecuted);

            #line default
            #line hidden
                return;

            case 3:

            #line 8 "..\..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.OpenCanExecute);

            #line default
            #line hidden

            #line 8 "..\..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OpenExecuted);

            #line default
            #line hidden
                return;

            case 4:

            #line 9 "..\..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.HelpCanExecute);

            #line default
            #line hidden

            #line 9 "..\..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.HelpExecuted);

            #line default
            #line hidden
                return;

            case 5:
                this.statusBarCoordinateX = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.statusBarCoordinateY = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.statusBarSelectedItem = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.menuPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 9:
                this.menu1 = ((System.Windows.Controls.Menu)(target));
                return;

            case 10:
                this.optionsMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 35 "..\..\..\MainWindow.xaml"
                this.optionsMenuItem.Click += new System.Windows.RoutedEventHandler(this.optionsMenuItem_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.printButton = ((System.Windows.Controls.Button)(target));

            #line 50 "..\..\..\MainWindow.xaml"
                this.printButton.Click += new System.Windows.RoutedEventHandler(this.printButton_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.singleSelection = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 57 "..\..\..\MainWindow.xaml"
                this.singleSelection.Checked += new System.Windows.RoutedEventHandler(this.singleSelection_Checked);

            #line default
            #line hidden
                return;

            case 13:
                this.multipleSelection = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 60 "..\..\..\MainWindow.xaml"
                this.multipleSelection.Checked += new System.Windows.RoutedEventHandler(this.multipleSelection_Checked);

            #line default
            #line hidden
                return;

            case 14:
                this.zoomInButton = ((System.Windows.Controls.Button)(target));

            #line 79 "..\..\..\MainWindow.xaml"
                this.zoomInButton.Click += new System.Windows.RoutedEventHandler(this.zoomInButton_Click_1);

            #line default
            #line hidden
                return;

            case 15:
                this.fullExtentButton = ((System.Windows.Controls.Button)(target));

            #line 82 "..\..\..\MainWindow.xaml"
                this.fullExtentButton.Click += new System.Windows.RoutedEventHandler(this.fullExtentButton_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.zoomOutButton = ((System.Windows.Controls.Button)(target));

            #line 85 "..\..\..\MainWindow.xaml"
                this.zoomOutButton.Click += new System.Windows.RoutedEventHandler(this.zoomOutButton_Click_1);

            #line default
            #line hidden
                return;

            case 17:
                this.parentGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 18:
                this.layer0 = ((System.Windows.Controls.Grid)(target));

            #line 94 "..\..\..\MainWindow.xaml"
                this.layer0.SizeChanged += new System.Windows.SizeChangedEventHandler(this.layer0_SizeChanged);

            #line default
            #line hidden
                return;

            case 19:
                this.canvasGrid = ((System.Windows.Controls.Grid)(target));

            #line 100 "..\..\..\MainWindow.xaml"
                this.canvasGrid.SizeChanged += new System.Windows.SizeChangedEventHandler(this.canvasGrid_SizeChanged);

            #line default
            #line hidden
                return;

            case 20:
                this.chartBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 21:
                this.scrollViewerCanvas1 = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 22:
                this.canvas1 = ((System.Windows.Controls.Canvas)(target));

            #line 103 "..\..\..\MainWindow.xaml"
                this.canvas1.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.canvas1_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 103 "..\..\..\MainWindow.xaml"
                this.canvas1.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.canvas1_MouseWheel);

            #line default
            #line hidden

            #line 103 "..\..\..\MainWindow.xaml"
                this.canvas1.MouseMove += new System.Windows.Input.MouseEventHandler(this.canvas1_MouseMove);

            #line default
            #line hidden

            #line 103 "..\..\..\MainWindow.xaml"
                this.canvas1.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.canvas1_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 103 "..\..\..\MainWindow.xaml"
                this.canvas1.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.canvas1_MouseRightButtonDown);

            #line default
            #line hidden

            #line 103 "..\..\..\MainWindow.xaml"
                this.canvas1.ContextMenuOpening += new System.Windows.Controls.ContextMenuEventHandler(this.canvas1_ContextMenuOpening);

            #line default
            #line hidden
                return;

            case 23:
                this.canvas1ContextMenu = ((System.Windows.Controls.ContextMenu)(target));
                return;

            case 24:
                this.showPathsContextMenu = ((System.Windows.Controls.MenuItem)(target));

            #line 117 "..\..\..\MainWindow.xaml"
                this.showPathsContextMenu.Click += new System.Windows.RoutedEventHandler(this.showPathsContextMenu_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.selectPathsNodesContextMenu = ((System.Windows.Controls.MenuItem)(target));

            #line 118 "..\..\..\MainWindow.xaml"
                this.selectPathsNodesContextMenu.Click += new System.Windows.RoutedEventHandler(this.selectPathsNodesContextMenu_Click);

            #line default
            #line hidden
                return;

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

            #line 120 "..\..\..\MainWindow.xaml"
                this.selectItemComboBox.Loaded += new System.Windows.RoutedEventHandler(this.selectItemComboBox_Loaded);

            #line default
            #line hidden

            #line 120 "..\..\..\MainWindow.xaml"
                this.selectItemComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.selectItemComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 27:
                this.selectAllNodesContextMenu = ((System.Windows.Controls.MenuItem)(target));

            #line 124 "..\..\..\MainWindow.xaml"
                this.selectAllNodesContextMenu.Click += new System.Windows.RoutedEventHandler(this.selectAllNodesContextMenu_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.unselectAllContextMenu = ((System.Windows.Controls.MenuItem)(target));

            #line 125 "..\..\..\MainWindow.xaml"
                this.unselectAllContextMenu.Click += new System.Windows.RoutedEventHandler(this.unselectAllContextMenu_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.gridToolbox = ((System.Windows.Controls.Grid)(target));
                return;

            case 30:
                this.button_LoggerLocTool = ((System.Windows.Controls.Button)(target));

            #line 143 "..\..\..\MainWindow.xaml"
                this.button_LoggerLocTool.Click += new System.Windows.RoutedEventHandler(this.button3_LoggerLocToolClick);

            #line default
            #line hidden
                return;

            case 31:
                this.nodesLabelsVisibility = ((System.Windows.Controls.CheckBox)(target));

            #line 146 "..\..\..\MainWindow.xaml"
                this.nodesLabelsVisibility.Checked += new System.Windows.RoutedEventHandler(this.nodesLabelsVisibility_Checked);

            #line default
            #line hidden

            #line 146 "..\..\..\MainWindow.xaml"
                this.nodesLabelsVisibility.Unchecked += new System.Windows.RoutedEventHandler(this.nodesLabelsVisibility_Unchecked);

            #line default
            #line hidden
                return;

            case 32:
                this.linksLabelsVisibility = ((System.Windows.Controls.CheckBox)(target));

            #line 147 "..\..\..\MainWindow.xaml"
                this.linksLabelsVisibility.Checked += new System.Windows.RoutedEventHandler(this.linksLabelsVisibility_Checked);

            #line default
            #line hidden

            #line 147 "..\..\..\MainWindow.xaml"
                this.linksLabelsVisibility.Unchecked += new System.Windows.RoutedEventHandler(this.linksLabelsVisibility_Unchecked);

            #line default
            #line hidden
                return;

            case 33:
                this.mainNetworkVisibility = ((System.Windows.Controls.CheckBox)(target));

            #line 148 "..\..\..\MainWindow.xaml"
                this.mainNetworkVisibility.Unchecked += new System.Windows.RoutedEventHandler(this.mainNetworkVisibility_Unchecked);

            #line default
            #line hidden

            #line 148 "..\..\..\MainWindow.xaml"
                this.mainNetworkVisibility.Checked += new System.Windows.RoutedEventHandler(this.mainNetworkVisibility_Checked);

            #line default
            #line hidden
                return;

            case 34:
                this.propertyGridForElement = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
                return;

            case 35:
                this.Button_loadEfavor = ((System.Windows.Controls.Button)(target));

            #line 178 "..\..\..\MainWindow.xaml"
                this.Button_loadEfavor.Click += new System.Windows.RoutedEventHandler(this.Button_loadEfavor_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.Button_suspectedLoggers = ((System.Windows.Controls.Button)(target));

            #line 179 "..\..\..\MainWindow.xaml"
                this.Button_suspectedLoggers.Click += new System.Windows.RoutedEventHandler(this.Button_suspectedLoggers_Click);

            #line default
            #line hidden
                return;

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

            case 38:
                this.textBox_maxNBursts = ((System.Windows.Controls.TextBox)(target));
                return;

            case 39:
                this.button_LocalizeBurst = ((System.Windows.Controls.Button)(target));

            #line 183 "..\..\..\MainWindow.xaml"
                this.button_LocalizeBurst.Click += new System.Windows.RoutedEventHandler(this.button_LocalizeBurst_Click);

            #line default
            #line hidden
                return;

            case 40:
                this.checkbox_loggerNetworkVisibility = ((System.Windows.Controls.CheckBox)(target));

            #line 184 "..\..\..\MainWindow.xaml"
                this.checkbox_loggerNetworkVisibility.Checked += new System.Windows.RoutedEventHandler(this.loggerNetworkVisibility_Checked);

            #line default
            #line hidden

            #line 184 "..\..\..\MainWindow.xaml"
                this.checkbox_loggerNetworkVisibility.Unchecked += new System.Windows.RoutedEventHandler(this.loggerNetworkVisibility_Unchecked);

            #line default
            #line hidden
                return;

            case 41:
                this.inletSetSelectionComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 190 "..\..\..\MainWindow.xaml"
                this.inletSetSelectionComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.inletSetSelectionComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 42:
                this.burstFlowEstimationGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 43:
                this.estimateButton = ((System.Windows.Controls.Button)(target));

            #line 215 "..\..\..\MainWindow.xaml"
                this.estimateButton.Click += new System.Windows.RoutedEventHandler(this.estimateButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }