当前位置: 首页>>代码示例>>C#>>正文


C# WinFormsUI.DockPane类代码示例

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


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

示例1: BeginDragPane

		public void BeginDragPane(DockPane pane)
		{
			if (!InitDrag(pane, DragSource.Pane))
				return;

			Pane_BeginDrag();
		}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:7,代码来源:DragHandler.cs

示例2: Add

		internal int Add(DockPane pane)
		{
			if (InnerList.Contains(pane))
				return InnerList.IndexOf(pane);

			return InnerList.Add(pane);
		}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:7,代码来源:DockPaneCollection.cs

示例3: DockPaneCaptionFromBase

		protected internal DockPaneCaptionFromBase(DockPane pane) : base(pane)
		{
			

			SuspendLayout();

			Font = SystemInformation.MenuFont;

			m_buttonClose = new InertButton(ImageCloseEnabled, ImageCloseDisabled);
			m_buttonAutoHide = new InertButton();

			m_buttonClose.ToolTipText = ToolTipClose;
			
			m_buttonClose.Anchor = AnchorStyles.Top | AnchorStyles.Right;
			m_buttonClose.Click += new EventHandler(this.Close_Click);

			m_buttonAutoHide.ToolTipText = ToolTipAutoHide;
			m_buttonAutoHide.Anchor = AnchorStyles.Top | AnchorStyles.Right;
			m_buttonAutoHide.Click += new EventHandler(AutoHide_Click);

			m_buttonWhatIsIt = new InertButton();
			m_buttonWhatIsIt.BackColor = ColorMixer.LightColor;
			m_buttonWhatIsIt.ForeColor = ColorMixer.DarkColor;
			m_buttonWhatIsIt.ToolTipText = "What is this?";
			m_buttonWhatIsIt.Text = "?";
			m_buttonWhatIsIt.Anchor = AnchorStyles.Top | AnchorStyles.Right;
			m_buttonWhatIsIt.Click+=new EventHandler(m_buttonWhatIsIt_Click);


			Controls.AddRange(new Control[]	{	m_buttonWhatIsIt, m_buttonClose, m_buttonAutoHide });

			ResumeLayout();
		}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:33,代码来源:DockPaneCaptionFromBase.cs

示例4: InternalConstruct

		private void InternalConstruct(DockPanel dockPanel, DockPane pane, bool boundsSpecified, Rectangle bounds)
		{
			if (dockPanel == null)
				throw(new ArgumentNullException(ResourceHelper.GetString("FloatWindow.Constructor.NullDockPanel")));

			m_dockList = new DockList(this);

			FormBorderStyle = FormBorderStyle.SizableToolWindow;
			ShowInTaskbar = false;
			
			SuspendLayout();
			if (boundsSpecified)
			{
				Bounds = bounds;
				StartPosition = FormStartPosition.Manual;
			}
			else
				StartPosition = FormStartPosition.WindowsDefaultLocation;

			m_dummyControl = new DummyControl();
			m_dummyControl.Bounds = Rectangle.Empty;
			Controls.Add(m_dummyControl);

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

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

示例5: AddAt

		internal void AddAt(DockPane pane, int index)
		{
			if (index < 0 || index > InnerList.Count - 1)
				return;
			
			if (Contains(pane))
				return;

			InnerList.Insert(index, pane);
		}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:10,代码来源:DockPaneCollection.cs

示例6: DockPaneCaptionBase

		/// <include file='CodeDoc/DockPaneCaptionBase.xml' path='//CodeDoc/Class[@name="DockPaneCaptionBase"]/Construct[@name="(DockPane)"]/*'/>
		protected internal DockPaneCaptionBase(DockPane pane)
		{
			m_dockPane = pane;

			SetStyle(ControlStyles.ResizeRedraw, true);
			SetStyle(ControlStyles.UserPaint, true);
			SetStyle(ControlStyles.AllPaintingInWmPaint, true);
			SetStyle(ControlStyles.DoubleBuffer, true);
			SetStyle(ControlStyles.Selectable, false);
		}
开发者ID:heon21st,项目名称:flashdevelop,代码行数:11,代码来源:DockPaneCaptionBase.cs

示例7: DockPaneStripBase

		/// <include file='CodeDoc/DockPaneStripBase.xml' path='//CodeDoc/Class[@name="DockPaneStripBase"]/Construct[@name="(DockPane)"]/*'/>
		protected internal DockPaneStripBase(DockPane pane)
		{
			m_dockPane = pane;

			#if FRAMEWORK_VER_2x
			SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
			#else
			SetStyle(ControlStyles.DoubleBuffer, true);
			#endif

			SetStyle(ControlStyles.Selectable, false);
		}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:13,代码来源:DockPaneStripBase.cs

示例8: ContainsPane

		public bool ContainsPane(DockPane pane)
		{
			if (pane.IsHidden)
				return false;

			for (int i=0; i<m_states.Length; i++)
			{
				if (m_states[i].DockState == pane.DockState && m_states[i].Selected)
					return true;
			}
			return false;
		}
开发者ID:tropology,项目名称:ceptr,代码行数:12,代码来源:AutoHideStateCollection.cs

示例9: Add

		internal void Add(DockPane pane)
		{
			if (pane == null)
				return;

			DockList oldDockList = (pane.DockListContainer == null) ? null : pane.DockListContainer.DockList;
			if (oldDockList != null)
				oldDockList.InternalRemove(pane);
			InnerList.Add(pane);
			if (oldDockList != null)
				oldDockList.CheckFloatWindowDispose();
		}
开发者ID:tropology,项目名称:ceptr,代码行数:12,代码来源:DockList.cs

示例10: SetActivePane

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

			if (value == m_activePane)
				return;

			if (m_activePane != null)
				if (m_activePane.IsActivated)
					DockPanel.Focus();

			m_activePane = value;
		}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:13,代码来源:AutoHideWindow.cs

示例11: DockPaneCaptionBase

		/// <include file='CodeDoc/DockPaneCaptionBase.xml' path='//CodeDoc/Class[@name="DockPaneCaptionBase"]/Construct[@name="(DockPane)"]/*'/>
		protected internal DockPaneCaptionBase(DockPane pane)
		{
			m_dockPane = pane;

			#if FRAMEWORK_VER_2x
			SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
			#else
			SetStyle(ControlStyles.DoubleBuffer, true);
			#endif
			SetStyle(ControlStyles.ResizeRedraw, true);
			SetStyle(ControlStyles.UserPaint, true);
			SetStyle(ControlStyles.AllPaintingInWmPaint, true);
			SetStyle(ControlStyles.Selectable, false);
		}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:15,代码来源:DockPaneCaptionBase.cs

示例12: DockPaneCaptionVS2003

		/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Construct[@name="(DockPane)"]/*'/>
		protected internal DockPaneCaptionVS2003(DockPane pane) : base(pane)
		{
			SuspendLayout();

			Font = SystemInformation.MenuFont;

			m_buttonClose = new InertButton(ImageCloseEnabled, ImageCloseDisabled);
			m_buttonAutoHide = new InertButton();

			m_buttonClose.ToolTipText = ToolTipClose;
			m_buttonClose.Anchor = AnchorStyles.Top | AnchorStyles.Right;
			m_buttonClose.Click += new EventHandler(this.Close_Click);

			m_buttonAutoHide.ToolTipText = ToolTipAutoHide;
			m_buttonAutoHide.Anchor = AnchorStyles.Top | AnchorStyles.Right;
			m_buttonAutoHide.Click += new EventHandler(AutoHide_Click);

			Controls.AddRange(new Control[]	{	m_buttonClose, m_buttonAutoHide });

			ResumeLayout();
		}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:22,代码来源:DockPaneCaptionVS2003.cs

示例13: DockPaneCaptionFromBase

        protected internal DockPaneCaptionFromBase(DockPane pane)
            : base(pane)
        {
            SuspendLayout();
            Font = SystemInformation.MenuFont;

            m_buttonClose = new PopupButton(ImageCloseEnabled, ImageCloseDisabled);
            m_buttonClose.ActiveBackColorGradientBegin = Color.FromArgb(59, 128, 237);
            m_buttonClose.ActiveBackColorGradientEnd = Color.FromArgb(49, 106, 197);
            m_buttonClose.InactiveBackColorGradientBegin = Color.FromArgb(204, 199, 186);
            m_buttonClose.InactiveBackColorGradientEnd = Color.FromArgb(204, 199, 186);

            m_buttonAutoHide = new PopupButton();
            m_buttonAutoHide.ActiveBackColorGradientBegin = Color.FromArgb(59, 128, 237);
            m_buttonAutoHide.ActiveBackColorGradientEnd = Color.FromArgb(49, 106, 197);
            m_buttonAutoHide.InactiveBackColorGradientBegin = Color.FromArgb(204, 199, 186);
            m_buttonAutoHide.InactiveBackColorGradientEnd = Color.FromArgb(204, 199, 186);

            m_buttonOptions = new PopupButton(ImageOptionsEnabled, ImageOptionsDisabled);
            m_buttonOptions.ActiveBackColorGradientBegin = Color.FromArgb(59, 128, 237);
            m_buttonOptions.ActiveBackColorGradientEnd = Color.FromArgb(49, 106, 197);
            m_buttonOptions.InactiveBackColorGradientBegin = Color.FromArgb(204, 199, 186);
            m_buttonOptions.InactiveBackColorGradientEnd = Color.FromArgb(204, 199, 186);

            m_buttonClose.ToolTipText = ToolTipClose;
            m_buttonClose.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            m_buttonClose.Click += new System.EventHandler(Close_Click);

            m_buttonAutoHide.ToolTipText = ToolTipAutoHide;
            m_buttonAutoHide.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            m_buttonAutoHide.Click += new System.EventHandler(AutoHide_Click);

            m_buttonOptions.ToolTipText = ToolTipOptions;
            m_buttonOptions.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            m_buttonOptions.Click += new System.EventHandler(Options_Click);

            Controls.AddRange(new Control[] {m_buttonClose, m_buttonAutoHide, m_buttonOptions});
            ResumeLayout();
        }
开发者ID:okyereadugyamfi,项目名称:softlogik,代码行数:39,代码来源:DockPaneCaptionFromBase.cs

示例14: DockPane

		/// <include file='CodeDoc\DockPane.xml' path='//CodeDoc/Class[@name="DockPane"]/Constructor[@name="(IDockContent, DockPane, DockAlignment, double, bool)"]/*'/>
		public DockPane(IDockContent content, DockPane prevPane, DockAlignment alignment, double proportion, bool show)
		{
			if (prevPane == null)
				throw(new ArgumentNullException());
			InternalConstruct(content, prevPane.DockState, false, Rectangle.Empty, prevPane, alignment, proportion, show);
		}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:7,代码来源:DockPane.cs

示例15: InternalAddToDockList

		private void InternalAddToDockList(IDockListContainer container, DockPane prevPane, DockAlignment alignment, double proportion)
		{
			if ((container.DockState == DockState.Float) != IsFloat)
				throw new InvalidOperationException(ResourceHelper.GetString("DockPane.AddToDockList.InvalidContainer"));

			int count = container.DockList.Count;
			if (container.DockList.Contains(this))
				count --;
			if (prevPane == null && count > 0)
				throw new InvalidOperationException(ResourceHelper.GetString("DockPane.AddToDockList.NullPrevPane"));

			if (prevPane != null && !container.DockList.Contains(prevPane))
				throw new InvalidOperationException(ResourceHelper.GetString("DockPane.AddToDockList.NoPrevPane"));

			if (prevPane == this)
				throw new InvalidOperationException(ResourceHelper.GetString("DockPane.AddToDockList.SelfPrevPane"));

			IDockListContainer oldContainer = DockListContainer;
			DockState oldDockState = DockState;
			container.DockList.Add(this);
			NestedDockingStatus.SetStatus(container.DockList, prevPane, alignment, proportion);

			if (DockHelper.IsDockWindowState(DockState))
				m_dockState = container.DockState;

			RefreshStateChange(oldContainer, oldDockState);
		}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:27,代码来源:DockPane.cs


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