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


C# Docking.DockContent类代码示例

本文整理汇总了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();
        }
开发者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


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