private void GetCorrectDockState(Telerik.Windows.Controls.RadPane radPane)
        {
            var splitContainer = radPane.ParentOfType <RadSplitContainer>();

            if (splitContainer != null)
            {
                var dockState = RadDocking.GetDockState(splitContainer);

                if (radPane.IsInDocumentHost)
                {
                    MessageBox.Show(string.Format("The '{0}' is in the DocumentHost", radPane.Header));
                }
                else
                {
                    MessageBox.Show(string.Format("The DockState of '{0}' is '{1}'", radPane.Header, dockState.ToString()));
                }
            }
        }
示例#2
0
        protected override void AddPane(Telerik.Windows.Controls.RadDocking radDocking, Telerik.Windows.Controls.RadPane pane)
        {
            //var tag = pane.Tag.ToString();
            var paneGroup = radDocking.SplitItems.ToList().FirstOrDefault(i => i.Control.Name.Contains("MainRadPaneGroup")) as RadPaneGroup;

            //var paneGroup = radDocking.SplitItems.ToList().FirstOrDefault() as RadPaneGroup;

            if (paneGroup != null)
            {
                paneGroup.Items.Add(pane);
            }
            else
            {
                base.AddPane(radDocking, pane);
            }
        }
示例#3
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.radDocking = ((Telerik.Windows.Controls.RadDocking)(target));
     return;
     case 2:
     this.radSplitContainer = ((Telerik.Windows.Controls.RadSplitContainer)(target));
     return;
     case 3:
     this.rpTradeEntry = ((Telerik.Windows.Controls.RadPane)(target));
     return;
     case 4:
     this.rpBlotter = ((Telerik.Windows.Controls.RadPane)(target));
     return;
     }
     this._contentLoaded = true;
 }
        protected override void AddPane(Telerik.Windows.Controls.RadDocking radDocking, Telerik.Windows.Controls.RadPane pane)
        {
            if (pane?.Tag != null)
            {
                if (pane.Name == "login")
                {
                    pane.CanUserClose = false;
                    pane.Visibility   = Visibility.Collapsed;
                    //pane.IsDragDisabled = false;
                }
                //pane.CanFloat = false;
                pane.FlowDirection = FlowDirection.RightToLeft;
                var tag       = pane.Tag.ToString();
                var paneGroup = radDocking.SplitItems.ToList().FirstOrDefault(i => i.Control.Name.Contains(tag)) as RadPaneGroup;

                if (paneGroup != null)
                {
                    paneGroup.Items.Add(pane);
                }
                else
                {
                    base.AddPane(radDocking, pane);
                }
            }
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 8 "..\..\..\SForceEdit\AxObject.xaml"
     ((AxiomIRISRibbon.SForceEdit.AxObject)(target)).IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.UserControl_IsVisibleChanged);
     
     #line default
     #line hidden
     return;
     case 2:
     this.BreadGridRow = ((System.Windows.Controls.RowDefinition)(target));
     return;
     case 3:
     this.bread1 = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 4:
     this.bsyInd = ((Telerik.Windows.Controls.RadBusyIndicator)(target));
     return;
     case 5:
     this.radDocking = ((Telerik.Windows.Controls.RadDocking)(target));
     
     #line 25 "..\..\..\SForceEdit\AxObject.xaml"
     this.radDocking.PaneStateChange += new System.EventHandler<Telerik.Windows.RadRoutedEventArgs>(this.radDocking_PaneStateChange);
     
     #line default
     #line hidden
     return;
     case 6:
     this.split1 = ((Telerik.Windows.Controls.RadSplitContainer)(target));
     return;
     case 7:
     this.rp2 = ((Telerik.Windows.Controls.RadPane)(target));
     return;
     case 8:
     this.searchbarrow = ((System.Windows.Controls.RowDefinition)(target));
     return;
     case 9:
     this.tbObjectButtons = ((Telerik.Windows.Controls.RadToolBar)(target));
     return;
     case 10:
     this.cbFilter = ((Telerik.Windows.Controls.RadComboBox)(target));
     return;
     case 11:
     
     #line 52 "..\..\..\SForceEdit\AxObject.xaml"
     ((Telerik.Windows.Controls.RadButton)(target)).Click += new System.Windows.RoutedEventHandler(this.RadButton_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.SFButton = ((Telerik.Windows.Controls.RadButton)(target));
     
     #line 60 "..\..\..\SForceEdit\AxObject.xaml"
     this.SFButton.Click += new System.Windows.RoutedEventHandler(this.SFButton_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.image1 = ((System.Windows.Controls.Image)(target));
     return;
     case 14:
     this.NewButton = ((Telerik.Windows.Controls.RadDropDownButton)(target));
     return;
     case 15:
     this.NewButtonContent = ((Telerik.Windows.Controls.RadContextMenu)(target));
     
     #line 73 "..\..\..\SForceEdit\AxObject.xaml"
     this.NewButtonContent.ItemClick += new Telerik.Windows.RadRoutedEventHandler(this.NewButtonContent_ItemClick);
     
     #line default
     #line hidden
     return;
     case 16:
     this.tbSearchButton = ((Telerik.Windows.Controls.RadButton)(target));
     
     #line 80 "..\..\..\SForceEdit\AxObject.xaml"
     this.tbSearchButton.Click += new System.Windows.RoutedEventHandler(this.tbSearchButton_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.tbSearch = ((Telerik.Windows.Controls.RadMaskedTextInput)(target));
     
     #line 84 "..\..\..\SForceEdit\AxObject.xaml"
     this.tbSearch.KeyDown += new System.Windows.Input.KeyEventHandler(this.tbSearch_KeyDown);
     
     #line default
     #line hidden
     
     #line 84 "..\..\..\SForceEdit\AxObject.xaml"
     this.tbSearch.ValueChanged += new System.EventHandler<Telerik.Windows.RadRoutedEventArgs>(this.tbSearch_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 18:
     this.radGridView1 = ((Telerik.Windows.Controls.RadGridView)(target));
     
     #line 93 "..\..\..\SForceEdit\AxObject.xaml"
     this.radGridView1.SelectionChanged += new System.EventHandler<Telerik.Windows.Controls.SelectionChangeEventArgs>(this.radGridView1_SelectionChanged);
     
     #line default
     #line hidden
     
     #line 93 "..\..\..\SForceEdit\AxObject.xaml"
     this.radGridView1.Sorting += new System.EventHandler<Telerik.Windows.Controls.GridViewSortingEventArgs>(this.radGridView1_Sorting);
     
     #line default
     #line hidden
     
     #line 93 "..\..\..\SForceEdit\AxObject.xaml"
     this.radGridView1.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.radGridView1_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 19:
     this.radDataPager1 = ((Telerik.Windows.Controls.RadDataPager)(target));
     
     #line 102 "..\..\..\SForceEdit\AxObject.xaml"
     this.radDataPager1.PageIndexChanged += new System.EventHandler<Telerik.Windows.Controls.PageIndexChangedEventArgs>(this.radDataPager1_PageIndexChanged);
     
     #line default
     #line hidden
     return;
     case 20:
     this.rpg1 = ((Telerik.Windows.Controls.RadPaneGroup)(target));
     return;
     case 21:
     this.rpDetail1 = ((Telerik.Windows.Controls.RadPane)(target));
     return;
     case 22:
     this.tab1 = ((Telerik.Windows.Controls.RadTabControl)(target));
     return;
     case 23:
     this.rp1 = ((Telerik.Windows.Controls.RadTabItem)(target));
     return;
     case 24:
     this.rowDataButtons = ((System.Windows.Controls.RowDefinition)(target));
     return;
     case 25:
     this.tbDataObjectButtons = ((Telerik.Windows.Controls.RadToolBar)(target));
     return;
     case 26:
     this.FieldContent = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 27:
     this.Fields = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 28:
     this.btnSave = ((Telerik.Windows.Controls.RadButton)(target));
     
     #line 128 "..\..\..\SForceEdit\AxObject.xaml"
     this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);
     
     #line default
     #line hidden
     return;
     case 29:
     this.btnCancel = ((Telerik.Windows.Controls.RadButton)(target));
     
     #line 129 "..\..\..\SForceEdit\AxObject.xaml"
     this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }