當前位置: 首頁>>代碼示例>>C#>>正文


C# Docking.DockPane類代碼示例

本文整理匯總了C#中WeifenLuo.WinFormsUI.Docking.DockPane的典型用法代碼示例。如果您正苦於以下問題:C# DockPane類的具體用法?C# DockPane怎麽用?C# DockPane使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DockPane類屬於WeifenLuo.WinFormsUI.Docking命名空間,在下文中一共展示了DockPane類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: InternalConstruct

		private void InternalConstruct(DockPanel dockPanel, DockPane pane, bool boundsSpecified, Rectangle bounds)
		{
			if (dockPanel == null)
				throw(new ArgumentNullException(Strings.FloatWindow_Constructor_NullDockPanel));

			m_nestedPanes = new NestedPaneCollection(this);

			FormBorderStyle = FormBorderStyle.SizableToolWindow;
			ShowInTaskbar = false;
            if (dockPanel.RightToLeft != RightToLeft)
                RightToLeft = dockPanel.RightToLeft;
            if (RightToLeftLayout != dockPanel.RightToLeftLayout)
                RightToLeftLayout = dockPanel.RightToLeftLayout;
			
			SuspendLayout();
            if (boundsSpecified)
            {
                Bounds = bounds;
                StartPosition = FormStartPosition.Manual;
            }
            else
            {
                StartPosition = FormStartPosition.WindowsDefaultLocation;
                Size = dockPanel.DefaultFloatWindowSize;
            }

			m_dockPanel = dockPanel;
			Owner = DockPanel.FindForm();
			DockPanel.AddFloatWindow(this);
			if (pane != null)
				pane.FloatWindow = this;

			ResumeLayout();
		}
開發者ID:moljac,項目名稱:MonoMobile.SharpSNMP,代碼行數:34,代碼來源:FloatWindow.cs

示例2: VS2005DockPaneCaption

        public VS2005DockPaneCaption(DockPane pane) : base(pane)
        {
            SuspendLayout();

            Font = PluginCore.PluginBase.Settings.DefaultFont;
            m_components = new Container();
            m_toolTip = new ToolTip(Components);

            // Adjust size based on scale
            double scale = ScaleHelper.GetScale();
            if (scale >= 2) // 200%
            {
                _TextGapTop = 3;
                _TextGapBottom = 6;
                _ButtonGapBottom = 4;
            }
            else if (scale >= 1.5) // 150%
            {
                _TextGapTop = 2;
                _TextGapBottom = 4;
                _ButtonGapBottom = 4;
            }
            else if (scale >= 1.2) // 120%
            {
                _TextGapTop = 2;
                _TextGapBottom = 2;
            }
            // Else 100%

            ResumeLayout();
        }
開發者ID:ImaginationSydney,項目名稱:flashdevelop,代碼行數:31,代碼來源:VS2005DockPaneCaption.cs

示例3: VS2005MultithreadingDockPaneCaption

        public VS2005MultithreadingDockPaneCaption(DockPane pane)
            : base(pane)
        {
            SuspendLayout();

            m_components = new Container();
            m_toolTip = new ToolTip(Components);

            // clone shared resources
            lock (typeof(Resources))
            {
                _imageButtonAutoHide = (Bitmap)Resources.DockPane_AutoHide.Clone();
                _imageButtonClose = (Bitmap)Resources.DockPane_Close.Clone();
                _imageButtonDock = (Bitmap)Resources.DockPane_Dock.Clone();
                _imageButtonOptions = (Bitmap)Resources.DockPane_Option.Clone();
            }

            // create background blend
            _activeBackColorGradientBlend = new Blend(2)
            {
                Factors = new float[] { 0.5F, 1.0F },
                Positions = new float[] { 0.0F, 1.0F },
            };

            ResumeLayout();
        }
開發者ID:dockpanelsuite,項目名稱:dockpanelsuite,代碼行數:26,代碼來源:VS2005MultithreadingDockPaneCaption.cs

示例4: VS2005MultithreadingDockPaneStrip

        public VS2005MultithreadingDockPaneStrip(DockPane pane)
            : base(pane)
        {
            SetStyle(ControlStyles.ResizeRedraw |
                ControlStyles.UserPaint |
                ControlStyles.AllPaintingInWmPaint |
                ControlStyles.OptimizedDoubleBuffer, true);

            SuspendLayout();

            m_components = new Container();
            m_toolTip = new ToolTip(Components);
            m_selectMenu = new ContextMenuStrip(Components);
            m_graphicsPath = new GraphicsPath();

            // clone shared resources
            lock (typeof(Resources))
            {
                m_imageButtonClose = (Bitmap)Resources.DockPane_Close.Clone();
                m_imageButtonWindowList = (Bitmap)Resources.DockPane_Option.Clone();
                m_imageButtonWindowListOverflow = (Bitmap)Resources.DockPane_OptionOverflow.Clone();
            }

            ResumeLayout();
        }
開發者ID:dafuchs,項目名稱:dockpanelsuite,代碼行數:25,代碼來源:VS2005MultithreadingDockPaneStrip.cs

示例5: InitWindows

        public void InitWindows( DockPane navigatorPane, DockPane outputPane )
        {
            availableTestStations = new AvailableTestStationsWindow();
            availableTestStations.Show(DockPanel, DockState.DockRight);
            availableTestStations.Hide();

            //availableTestAdapters = new AvailableTestAdaptersWindow();
            //availableTestAdapters.Show(navigatorPane, DockAlignment.Bottom, .60);
            //availableTestAdapters.Hide();

            availableInstruments = new AvailableInstrumentsWindow();
            availableInstruments.Show(navigatorPane, DockAlignment.Bottom, .50);
            availableInstruments.Hide();

            requiredSignals = new RequiredSignalsWindow();
            requiredSignals.Show(outputPane, DockAlignment.Right, .50 );
            requiredSignals.Hide();
            requiredSignals.SignalRequirementSelected += new ATMLManagerLibrary.delegates.ItemSelectionDeligate<ATMLModelLibrary.model.SignalRequirementsSignalRequirement>(requiredSignals_SignalRequirementSelected);

            requiredInstruments = new RequiredInstrumentsWindow();
            requiredInstruments.Show( requiredSignals.Pane, DockAlignment.Bottom, 0 );
            requiredInstruments.DockTo(requiredSignals.Pane, DockStyle.Fill, 0 );
            requiredInstruments.Hide();

            requiredAdapters = new RequiredAdaptersWindow();
            requiredAdapters.Show(requiredSignals.Pane, DockAlignment.Bottom, 0);
            requiredAdapters.DockTo(requiredSignals.Pane, DockStyle.Fill, 0);
            requiredAdapters.Hide();
        }
開發者ID:UtrsSoftware,項目名稱:ATMLWorkBench,代碼行數:29,代碼來源:ATMLAllocatorToolWindow.cs

示例6: DockTo

        public void DockTo(DockPane pane, DockStyle dockStyle, int contentIndex)
        {
            if (dockStyle == DockStyle.Fill)
            {
                for (int i = NestedPanes.Count - 1; i >= 0; i--)
                {
                    DockPane paneFrom = NestedPanes[i];
                    for (int j = paneFrom.Contents.Count - 1; j >= 0; j--)
                    {
                        IDockContent c = paneFrom.Contents[j];
                        c.DockHandler.Pane = pane;
                        if (contentIndex != -1)
                            pane.SetContentIndex(c, contentIndex);
                        c.DockHandler.Activate();
                    }
                }
            }
            else
            {
                DockAlignment alignment = DockAlignment.Left;
                if (dockStyle == DockStyle.Left)
                    alignment = DockAlignment.Left;
                else if (dockStyle == DockStyle.Right)
                    alignment = DockAlignment.Right;
                else if (dockStyle == DockStyle.Top)
                    alignment = DockAlignment.Top;
                else if (dockStyle == DockStyle.Bottom)
                    alignment = DockAlignment.Bottom;

                MergeNestedPanes(VisibleNestedPanes, pane.NestedPanesContainer.NestedPanes, pane, alignment, 0.5);
            }
        }
開發者ID:lostinspacebar,項目名稱:dockpanelsuite,代碼行數:32,代碼來源:FloatWindow.cs

示例7: CustomFloatWindow

 public CustomFloatWindow(DockPanel dockPanel, DockPane pane, Rectangle bounds)
     : base(dockPanel, pane, bounds)
 {
     FormBorderStyle = FormBorderStyle.Sizable;
     ShowInTaskbar = true;
     Owner = null;
 }
開發者ID:jellever,項目名稱:JeSCommandLine,代碼行數:7,代碼來源:CustomFloatWindow.cs

示例8: SetStatus

 internal void SetStatus(NestedPaneCollection nestedPanes, DockPane previousPane, DockAlignment alignment, double proportion)
 {
     m_nestedPanes = nestedPanes;
     m_previousPane = previousPane;
     m_alignment = alignment;
     m_proportion = proportion;
 }
開發者ID:zpLin,項目名稱:flashdevelop,代碼行數:7,代碼來源:NestedDockingStatus.cs

示例9: DockPane

 protected internal DockPane(IDockContent content, DockPane previousPane, DockAlignment alignment,
     double proportion, bool show)
 {
     if (previousPane == null)
         throw (new ArgumentNullException("previousPane"));
     InternalConstruct(content, previousPane.DockState, false, Rectangle.Empty, previousPane, alignment,
         proportion, show);
 }
開發者ID:samarjeet27,項目名稱:ynoteclassic,代碼行數:8,代碼來源:DockPane.cs

示例10: VS2005DockPaneCaption

 public VS2005DockPaneCaption(DockPane pane)
     : base(pane)
 {
     this.SuspendLayout();
     this.m_components = new Container();
     this.m_toolTip = new ToolTip(this.Components);
     this.ResumeLayout();
 }
開發者ID:hksonngan,項目名稱:sharptracing,代碼行數:8,代碼來源:VS2005DockPaneCaption.cs

示例11: DockPaneCaptionBase

 protected internal DockPaneCaptionBase(DockPane pane)
 {
     this.m_dockPane = pane;
     this.SetStyle(
             ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.UserPaint
             | ControlStyles.AllPaintingInWmPaint, true);
     this.SetStyle(ControlStyles.Selectable, false);
 }
開發者ID:hksonngan,項目名稱:sharptracing,代碼行數:8,代碼來源:DockPaneCaptionBase.cs

示例12: SetActivePane

            private void SetActivePane()
            {
                DockPane value = (ActiveContent == null ? null : ActiveContent.DockHandler.Pane);

                if (value == m_activePane)
                    return;

                m_activePane = value;
            }
開發者ID:hanistory,項目名稱:hasuite,代碼行數:9,代碼來源:DockPanel.AutoHideWindow.cs

示例13: VS2012LightSplitterControl

 public VS2012LightSplitterControl(DockPane pane)
     : base(pane)
 {
     _horizontalBrush = new SolidBrush(pane.DockPanel.Skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.EndColor);
     this._verticalSurroundColors = new[]
                                        {
                                            pane.DockPanel.Skin.DockPaneStripSkin.DocumentGradient
                                                .InactiveTabGradient.StartColor
                                        };
 }
開發者ID:460189852,項目名稱:dockpanelsuite,代碼行數:10,代碼來源:VS2012LightSplitterControl.cs

示例14: VS2012DockPaneCaption

        public VS2012DockPaneCaption(DockPane pane)
            : base(pane)
        {
            SuspendLayout();

            m_components = new Container();
            m_toolTip = new ToolTip(Components);

            ResumeLayout();
        }
開發者ID:dafuchs,項目名稱:dockpanelsuite,代碼行數:10,代碼來源:VS2012DockPaneCaption.cs

示例15: VS2012SplitterControl

 public VS2012SplitterControl(DockPane pane)
     : base(pane)
 {
     _horizontalBrush = pane.DockPanel.Theme.PaintingService.GetBrush(pane.DockPanel.Skin.ColorPalette.TabSelectedInactive.Background);
     _backgroundBrush = pane.DockPanel.Theme.PaintingService.GetBrush(pane.DockPanel.Skin.ColorPalette.MainWindowActive.Background);
     this._verticalSurroundColors = new[]
                                        {
                                            pane.DockPanel.Skin.ColorPalette.TabSelectedInactive.Background
                                        };
 }
開發者ID:dafuchs,項目名稱:dockpanelsuite,代碼行數:10,代碼來源:VS2012SplitterControl.cs


注:本文中的WeifenLuo.WinFormsUI.Docking.DockPane類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。