本文整理汇总了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();
}
示例2: Add
internal int Add(DockPane pane)
{
if (InnerList.Contains(pane))
return InnerList.IndexOf(pane);
return InnerList.Add(pane);
}
示例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();
}
示例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();
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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();
}
示例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;
}
示例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);
}
示例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();
}
示例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();
}
示例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);
}
示例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);
}