本文整理汇总了C#中WeifenLuo.WinFormsUI.Docking.DockContent类的典型用法代码示例。如果您正苦于以下问题:C# DockContent类的具体用法?C# DockContent怎么用?C# DockContent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DockContent类属于WeifenLuo.WinFormsUI.Docking命名空间,在下文中一共展示了DockContent类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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();
}
开发者ID:koglth,项目名称:dockpanelsuite,代码行数:25,代码来源:DockPanel.cs
示例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;
}
开发者ID:fremag,项目名称:MemoScope.Net,代码行数:12,代码来源:UIModuleHelper.cs
示例3: ExternalToolsWindow
public ExternalToolsWindow(DockContent panel)
{
InitializeComponent();
WindowType = WindowType.ExternalApps;
DockPnl = panel;
}
开发者ID:mRemoteNG,项目名称:mRemoteNG,代码行数:7,代码来源:ExternalToolsWindow.cs
示例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);
}
}
开发者ID:hejob,项目名称:SB3Utility,代码行数:32,代码来源:FormQuickAccess.cs
示例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();
}
开发者ID:moljac,项目名称:MonoMobile.SharpSNMP,代码行数:29,代码来源:DockPanel.cs
示例6: UpdateWindow
public UpdateWindow(DockContent panel)
{
WindowType = WindowType.Update;
DockPnl = panel;
InitializeComponent();
Runtime.FontOverride(this);
}
开发者ID:mRemoteNG,项目名称:mRemoteNG,代码行数:7,代码来源:UpdateWindow.cs
示例7: PortScanWindow
public PortScanWindow(DockContent panel)
{
InitializeComponent();
WindowType = WindowType.PortScan;
DockPnl = panel;
}
开发者ID:mRemoteNG,项目名称:mRemoteNG,代码行数:7,代码来源:PortScanWindow.cs
示例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();
}
开发者ID:heon21st,项目名称:flashdevelop,代码行数:34,代码来源:DockPanel.cs
示例9: ActiveDirectoryImportWindow
public ActiveDirectoryImportWindow(DockContent panel)
{
InitializeComponent();
Runtime.FontOverride(this);
WindowType = WindowType.ActiveDirectoryImport;
DockPnl = panel;
}
开发者ID:mRemoteNG,项目名称:mRemoteNG,代码行数:7,代码来源:ActiveDirectoryImportWindow.cs
示例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);
}
开发者ID:zhh007,项目名称:CKGen,代码行数:35,代码来源:FrmMain.cs
示例11: UpdateMenuItemChecked
private void UpdateMenuItemChecked(ToolStripMenuItem menuItem, DockContent dockContent)
{
if (menuItem != null)
{
menuItem.Checked = (dockContent.DockState != DockState.Hidden);
}
}
开发者ID:Aquilon96,项目名称:ags,代码行数:7,代码来源:WindowsMenuManager.cs
示例12: ToggleDocked
private void ToggleDocked(DockContent dockContent)
{
if (dockContent.Visible)
dockContent.Hide();
else
ShowDocked(dockContent);
}
开发者ID:AlexeyMz,项目名称:WebExecutor,代码行数:7,代码来源:MainForm.cs
示例13: AboutWindow
public AboutWindow(DockContent Panel)
{
WindowType = WindowType.About;
DockPnl = Panel;
InitializeComponent();
Runtime.FontOverride(this);
}
开发者ID:mRemoteNG,项目名称:mRemoteNG,代码行数:7,代码来源:AboutWindow.cs
示例14: ErrorAndInfoWindow
public ErrorAndInfoWindow(DockContent Panel)
{
this.WindowType = WindowType.ErrorsAndInfos;
this.DockPnl = Panel;
this.InitializeComponent();
this.LayoutVertical();
this.FillImageList();
}
开发者ID:mRemoteNG,项目名称:mRemoteNG,代码行数:8,代码来源:ErrorAndInfoWindow.cs
示例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;
}
开发者ID:johann-gambolputty,项目名称:robotbastards,代码行数:12,代码来源:DockingFrame.cs
示例16: CreateContent
public void CreateContent()
{
this.Text = "DockPanelSuite TestApp";
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 600);
//
var dockPanel = new DockPanel();
dockPanel.AllowDrop = true;
dockPanel.TabIndex = 1;
dockPanel.DocumentStyle = DocumentStyle.DockingWindow;
dockPanel.AllowEndUserDocking = true;
dockPanel.AllowEndUserNestedDocking = true;
dockPanel.Dock = DockStyle.Fill;
this.Controls.Add(dockPanel);
//
var dc = new DockContent();
dc.TabText = "Hello Doc!";
dc.DockPanel = dockPanel;
dc.DockAreas = DockAreas.Document;
var rtb = new RichTextBox();
rtb.Dock = DockStyle.Fill;
dc.Controls.Add(rtb);
dc.Show();
//
DockContent dc2 = new DockContent();
dc2.TabText = "Hello Doc!";
dc2.DockPanel = dockPanel;
dc2.DockAreas = DockAreas.Document;
var rtb2 = new RichTextBox();
rtb2.Dock = DockStyle.Fill;
dc2.Controls.Add(rtb2);
dc2.Show();
//
DockContent dc3 = new DockContent();
dc3.AllowEndUserDocking = true;
dc3.AllowDrop = true;
dc3.TabText = "Hello Tab!";
dc3.DockPanel = dockPanel;
dc3.DockAreas = DockAreas.DockBottom | DockAreas.DockLeft | DockAreas.DockRight | DockAreas.DockTop;
dc3.DockState = DockState.DockRight;
var rtb3 = new RichTextBox();
rtb3.Dock = DockStyle.Fill;
dc3.Controls.Add(rtb3);
dc3.Show();
//
DockContent dc4 = new DockContent();
dc4.AllowEndUserDocking = true;
dc4.AllowDrop = true;
dc4.TabText = "Hello Tab!";
dc4.DockPanel = dockPanel;
dc4.DockAreas = DockAreas.DockBottom | DockAreas.DockLeft | DockAreas.DockRight | DockAreas.DockTop | DockAreas.Float;
dc4.DockState = DockState.DockBottomAutoHide;
var rtb4 = new RichTextBox();
rtb4.Dock = DockStyle.Fill;
dc4.Controls.Add(rtb4);
dc4.Show();
}
开发者ID:ImaginationSydney,项目名称:flashdevelop,代码行数:58,代码来源:MainForm.cs
示例17: AddForm
public void AddForm(DockContent dc, DockState ds)
{
if (dc == null)
return;
//FIXME: set 'dc.ShowHint = ds' without failing from no active content
dc.ShowHint = DockState.Document;
dc.MdiParent = this;
dc.Show(dockPanel1);
}
开发者ID:mlnlover11,项目名称:Notepad-X,代码行数:9,代码来源:MainForm.cs
示例18: SendPanelToScreen
public static void SendPanelToScreen(DockContent Panel, Screen Screen)
{
Panel.DockState = DockState.Float;
if (Panel.ParentForm != null)
{
Panel.ParentForm.Left = Screen.Bounds.Location.X;
Panel.ParentForm.Top = Screen.Bounds.Location.Y;
}
}
开发者ID:mRemoteNG,项目名称:mRemoteNG,代码行数:9,代码来源:Screens.cs
示例19: HelpWindow
public HelpWindow(DockContent Panel)
{
WindowType = WindowType.Help;
DockPnl = Panel;
InitializeComponent();
FillImageList();
tvIndex.ImageList = imgListHelp;
SetImages(tvIndex.Nodes[0]);
}
开发者ID:mRemoteNG,项目名称:mRemoteNG,代码行数:10,代码来源:HelpWindow.cs
示例20: AddDockableForm
/// <summary>
/// Adds a dockable form to the dockable forms dictionary. Optionally enables that form.
/// </summary>
/// <param name="name">The unique name key for the form.</param>
/// <param name="panel">A new instance of a dockable form.</param>
/// <param name="defaultActivate">Optional: Add the form to the panel at startup.</param>
/// <returns></returns>
public bool AddDockableForm(string name, DockContent panel, bool defaultActivate = false)
{
if (DockableForms.ContainsKey(name)) return false;
if (!(panel is IDockableForm)) throw new InvalidCastException("The form does not implement IDockableForm");
DockableForms.Add(name, panel);
if (defaultActivate)
ActivatePanel(name, ((IDockableForm)panel).DefaultState);
return true;
}
开发者ID:TaleOfTwoWastelands,项目名称:ESPSharp-GUI,代码行数:18,代码来源:MainWindow.cs
注:本文中的WeifenLuo.WinFormsUI.Docking.DockContent类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论