• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Docking.DockPane类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中WeifenLuo.WinFormsUI.Docking.DockPane的典型用法代码示例。如果您正苦于以下问题:C# DockPane类的具体用法?C# DockPane怎么用?C# DockPane使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DockPane类属于WeifenLuo.WinFormsUI.Docking命名空间,在下文中一共展示了DockPane类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: ShowDock

        public void ShowDock(DockPane pane, DockAlignment align, double proportion)
        {
            FormClosed += new FormClosedEventHandler(dock_FormClosed);
            
            if (m_Docks.Count > 0)
                Show(m_Docks[0].Pane, m_Docks[0]);
            else
                Show(pane, align, proportion);

            m_Docks.Add(this);
        }
开发者ID:Lonesled,项目名称:renderdoc,代码行数:11,代码来源:ConstantBufferPreviewer.cs


示例17: VS2005DockPaneCaption

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

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

            ResumeLayout();
        }
开发者ID:thecocce,项目名称:flashdevelop,代码行数:11,代码来源:VS2005DockPaneCaption.cs


示例18: VS2005DockPaneCaption

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

            Font = SystemInformation.MenuFont;
            m_components = new Container();
            m_toolTip = new ToolTip(Components);

            ResumeLayout();
        }
开发者ID:pisceanfoot,项目名称:codegen,代码行数:11,代码来源:VS2005DockPaneCaption.cs


示例19: VS2005DockPaneStrip

 public VS2005DockPaneStrip(DockPane pane)
     : base(pane)
 {
     this.SetStyle(
             ControlStyles.ResizeRedraw | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint
             | ControlStyles.OptimizedDoubleBuffer, true);
     this.SuspendLayout();
     this.m_components = new Container();
     this.m_toolTip = new ToolTip(this.Components);
     this.m_selectMenu = new ContextMenuStrip(this.Components);
     this.ResumeLayout();
 }
开发者ID:hksonngan,项目名称:sharptracing,代码行数:12,代码来源:VS2005DockPaneStrip.cs


示例20: InternalConstruct

		private void InternalConstruct(IDockContent content, DockState dockState, bool flagBounds, Rectangle floatWindowBounds, DockPane prevPane, DockAlignment alignment, double proportion, bool show)
		{
			if (dockState == DockState.Hidden || dockState == DockState.Unknown)
				throw new ArgumentException(Strings.DockPane_SetDockState_InvalidState);

			if (content == null)
				throw new ArgumentNullException(Strings.DockPane_Constructor_NullContent);

			if (content.DockHandler.DockPanel == null)
				throw new ArgumentException(Strings.DockPane_Constructor_NullDockPanel);


			SuspendLayout();
			SetStyle(ControlStyles.Selectable, false);

			m_isFloat = (dockState == DockState.Float);

			m_contents = new DockContentCollection();
			m_displayingContents = new DockContentCollection(this);
			m_dockPanel = content.DockHandler.DockPanel;
			m_dockPanel.AddPane(this);

			m_splitter = new SplitterControl(this);

			m_nestedDockingStatus = new NestedDockingStatus(this);

			m_captionControl = DockPanel.DockPaneCaptionFactory.CreateDockPaneCaption(this);
			m_tabStripControl = DockPanel.DockPaneStripFactory.CreateDockPaneStrip(this);
			Controls.AddRange(new Control[] {	m_captionControl, m_tabStripControl	});
			
			DockPanel.SuspendLayout(true);
			if (flagBounds)
				FloatWindow = DockPanel.FloatWindowFactory.CreateFloatWindow(DockPanel, this, floatWindowBounds);
			else if (prevPane != null)
				DockTo(prevPane.NestedPanesContainer, prevPane, alignment, proportion);

			SetDockState(dockState);
			if (show)
				content.DockHandler.Pane = this;
			else if (this.IsFloat)
				content.DockHandler.FloatPane = this;
			else
				content.DockHandler.PanelPane = this;

			ResumeLayout();
			DockPanel.ResumeLayout(true, true);
		}
开发者ID:moljac,项目名称:MonoMobile.SharpSNMP,代码行数:47,代码来源:DockPane.cs



注:本文中的WeifenLuo.WinFormsUI.Docking.DockPane类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Docking.DockPanel类代码示例发布时间:2022-05-26
下一篇:
C# Docking.DockContentEventArgs类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap