本文整理汇总了C#中WeifenLuo.WinFormsUI.Docking.DockContent类的典型用法代码示例。如果您正苦于以下问题:C# DockContent类的具体用法?C# DockContent怎么用?C# DockContent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DockContent类属于WeifenLuo.WinFormsUI.Docking命名空间,在下文中一共展示了DockContent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DockPanel
public DockPanel()
{
ShowAutoHideContentOnHover = true;
m_focusManager = new FocusManagerImpl(this);
m_extender = new DockPanelExtender(this);
m_panes = new DockPaneCollection();
m_floatWindows = new FloatWindowCollection();
SuspendLayout();
m_autoHideWindow = Extender.AutoHideWindowFactory.CreateAutoHideWindow(this);
m_autoHideWindow.Visible = false;
m_autoHideWindow.ActiveContentChanged += m_autoHideWindow_ActiveContentChanged;
SetAutoHideWindowParent();
m_dummyControl = new DummyControl();
m_dummyControl.Bounds = new Rectangle(0, 0, 1, 1);
Controls.Add(m_dummyControl);
LoadDockWindows();
m_dummyContent = new DockContent();
ResumeLayout();
}
示例2: BuildDockContent
public static DockContent BuildDockContent(Control control, bool allowclose = true)
{
DockContent content = new DockContent();
control.Dock = DockStyle.Fill;
content.Text = control.Name;
content.Controls.Add(control);
content.Tag = control;
content.CloseButton = allowclose;
content.CloseButtonVisible = allowclose;
return content;
}
示例3: ExternalToolsWindow
public ExternalToolsWindow(DockContent panel)
{
InitializeComponent();
WindowType = WindowType.ExternalApps;
DockPnl = panel;
}
示例4: RegisterOpenFile
public void RegisterOpenFile(DockContent content, ContentCategory category)
{
if (!IsHidden && !ChildForms.ContainsKey(content))
{
content.FormClosed += new FormClosedEventHandler(ChildForms_FormClosed);
ListViewItem item = new ListViewItem(content.Text);
item.ToolTipText = content.ToolTipText;
item.Tag = content;
ColumnHeader hdr = null;
switch (category)
{
case ContentCategory.Archives:
hdr = archiveListHeader;
break;
case ContentCategory.Meshes:
hdr = meshListHeader;
break;
case ContentCategory.Animations:
hdr = animationListHeader;
break;
case ContentCategory.Others:
hdr = otherListHeader;
break;
}
hdr.ListView.Items.Add(item);
hdr.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent);
tabControlQuickAccess.SelectTabWithoutLoosingFocus((TabPage)hdr.ListView.Parent);
ChildForms.Add(content, item);
}
}
示例5: DockPanel
public DockPanel()
{
m_focusManager = new FocusManagerImpl(this);
m_extender = new DockPanelExtender(this);
m_panes = new DockPaneCollection();
m_floatWindows = new FloatWindowCollection();
SuspendLayout();
m_autoHideWindow = new AutoHideWindowControl(this);
m_autoHideWindow.Visible = false;
SetAutoHideWindowParent();
m_dummyControl = new DummyControl();
m_dummyControl.Bounds = new Rectangle(0, 0, 1, 1);
Controls.Add(m_dummyControl);
m_dockWindows = new DockWindowCollection(this);
Controls.AddRange(new Control[] {
DockWindows[DockState.Document],
DockWindows[DockState.DockLeft],
DockWindows[DockState.DockRight],
DockWindows[DockState.DockTop],
DockWindows[DockState.DockBottom]
});
m_dummyContent = new DockContent();
ResumeLayout();
}
示例6: UpdateWindow
public UpdateWindow(DockContent panel)
{
WindowType = WindowType.Update;
DockPnl = panel;
InitializeComponent();
Runtime.FontOverride(this);
}
示例7: PortScanWindow
public PortScanWindow(DockContent panel)
{
InitializeComponent();
WindowType = WindowType.PortScan;
DockPnl = panel;
}
示例8: DockPanel
public DockPanel()
{
m_focusManager = new FocusManagerImpl(this);
m_extender = new DockPanelExtender(this);
m_panes = new DockPaneCollection();
m_floatWindows = new FloatWindowCollection();
SetStyle(ControlStyles.ResizeRedraw |
ControlStyles.UserPaint |
ControlStyles.AllPaintingInWmPaint, true);
SuspendLayout();
Font = PluginCore.PluginBase.Settings.DefaultFont;
m_autoHideWindow = new AutoHideWindowControl(this);
m_autoHideWindow.Visible = false;
SetAutoHideWindowParent();
m_dummyControl = new DummyControl();
m_dummyControl.Bounds = new Rectangle(0, 0, 1, 1);
Controls.Add(m_dummyControl);
m_dockWindows = new DockWindowCollection(this);
Controls.AddRange(new Control[] {
DockWindows[DockState.Document],
DockWindows[DockState.DockLeft],
DockWindows[DockState.DockRight],
DockWindows[DockState.DockTop],
DockWindows[DockState.DockBottom]
});
m_dummyContent = new DockContent();
ResumeLayout();
}
示例9: ActiveDirectoryImportWindow
public ActiveDirectoryImportWindow(DockContent panel)
{
InitializeComponent();
Runtime.FontOverride(this);
WindowType = WindowType.ActiveDirectoryImport;
DockPnl = panel;
}
示例10: FrmMain
public FrmMain()
{
InitializeComponent();
var v = Assembly.GetEntryAssembly().GetName().Version;
this.Version = string.Format("v{0}.{1}", v.Major, v.Minor);
string title = string.Format("编程辅助工具{0}", this.Version);
this.Text = title;
BackgroundWorker worker = new BackgroundWorker();
worker.DoWork += new DoWorkEventHandler(worker_DoWork);
worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);
worker.RunWorkerAsync();
this.IsMdiContainer = true;
this.dockPanel.DocumentStyle = DocumentStyle.DockingMdi;
//详细信息
DockContent dc = new DockContent();
dc.CloseButtonVisible = false;
dc.Text = "详细信息";
DetailTabPage dtpage = new DetailTabPage();
dtpage.Dock = DockStyle.Fill;
dc.Controls.Add(dtpage);
dc.Show(this.dockPanel, DockState.Document);
//数据
DockContent dc2 = new DockContent();
dc2.CloseButtonVisible = false;
dc2.Text = "数据";
SchemaTreeView stpage = new SchemaTreeView();
stpage.Dock = DockStyle.Fill;
dc2.Controls.Add(stpage);
dc2.Show(this.dockPanel, DockState.DockLeft);
}
示例11: UpdateMenuItemChecked
private void UpdateMenuItemChecked(ToolStripMenuItem menuItem, DockContent dockContent)
{
if (menuItem != null)
{
menuItem.Checked = (dockContent.DockState != DockState.Hidden);
}
}
示例12: ToggleDocked
private void ToggleDocked(DockContent dockContent)
{
if (dockContent.Visible)
dockContent.Hide();
else
ShowDocked(dockContent);
}
示例13: AboutWindow
public AboutWindow(DockContent Panel)
{
WindowType = WindowType.About;
DockPnl = Panel;
InitializeComponent();
Runtime.FontOverride(this);
}
示例14: ErrorAndInfoWindow
public ErrorAndInfoWindow(DockContent Panel)
{
this.WindowType = WindowType.ErrorsAndInfos;
this.DockPnl = Panel;
this.InitializeComponent();
this.LayoutVertical();
this.FillImageList();
}
示例15: DockingFrame
/// <summary>
/// Setup constructor
/// </summary>
/// <param name="panel">Docking panel used to host this frame</param>
public DockingFrame( DockPanel panel )
{
Arguments.CheckNotNull( panel, "panel" );
m_Panel = panel;
m_Content = new DockContent( );
m_Content.AutoScroll = true;
m_Content.Closing += OnContentClosing;
}