當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。