當前位置: 首頁>>代碼示例>>C#>>正文


C# Docking.DockPanel類代碼示例

本文整理匯總了C#中WeifenLuo.WinFormsUI.Docking.DockPanel的典型用法代碼示例。如果您正苦於以下問題:C# DockPanel類的具體用法?C# DockPanel怎麽用?C# DockPanel使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DockPanel類屬於WeifenLuo.WinFormsUI.Docking命名空間,在下文中一共展示了DockPanel類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: AmusementsForm

 public AmusementsForm(GameRecords model, DockPanel parent, ToolStripMenuItem amusement)
 {
     InitializeComponent();
     dockP = parent;
     buyForm = new AmusementBuyForm(model,parent);
     this.amusItem = amusement;
 }
開發者ID:jamafyna,項目名稱:park,代碼行數:7,代碼來源:AmusementsForm.cs

示例2: CustomFloatWindow

 public CustomFloatWindow(DockPanel dockPanel, DockPane pane, Rectangle bounds)
     : base(dockPanel, pane, bounds)
 {
     FormBorderStyle = FormBorderStyle.Sizable;
     ShowInTaskbar = true;
     Owner = null;
 }
開發者ID:jellever,項目名稱:JeSCommandLine,代碼行數:7,代碼來源:CustomFloatWindow.cs

示例3: WindowManager

 public WindowManager(IPathResolver pathResolver, DockPanel dockPanel, Settings settings)
 {
     m_settings = settings;
       m_fileEditorMap = new Dictionary<string, EditorContentBox>();
       m_pathResolver = pathResolver;
       m_dockPanel = dockPanel;
 }
開發者ID:trietptm,項目名稱:retoolkit,代碼行數:7,代碼來源:WindowManager.cs

示例4: DockedHostPaneViewManager

 /// <summary>
 /// Setup constructor
 /// </summary>
 /// <param name="commandUi">Command UI manager. Any show command attached to views get added to this object</param>
 /// <param name="mainPanel">Main docking panel</param>
 /// <param name="hostPaneName">Name of the host pane</param>
 public DockedHostPaneViewManager( ICommandUiManager commandUi, DockPanel mainPanel, string hostPaneName )
 {
     Arguments.CheckNotNull( commandUi, "commandUi" );
     Arguments.CheckNotNull( mainPanel, "mainPanel" );
     m_UnhostedViewManager = new DockingViewManager( commandUi, mainPanel );
     m_HostViewInfo = new DockingViewInfo( hostPaneName, CreateHostControl, DockState.DockLeft );
 }
開發者ID:johann-gambolputty,項目名稱:robotbastards,代碼行數:13,代碼來源:DockedHostPaneViewManager.cs

示例5: Apply

		public override void Apply(DockPanel dockPanel) {
			if (dockPanel == null) {
				throw new NullReferenceException("dockPanel");
			}

			Measures.SplitterSize = 6;
			dockPanel.Extender.DockPaneCaptionFactory = new VS2010PaneCaptionFactory();
			dockPanel.Extender.AutoHideStripFactory = new VS2010AutoHideStripFactory();
			dockPanel.Extender.AutoHideWindowFactory = new VS2010AutoHideWindowFactory();
			dockPanel.Extender.DockPaneStripFactory = new VS2010DockPaneStripFactory();
			dockPanel.Extender.DockPaneSplitterControlFactory = new VS2010DockPaneSplitterControlFactory();
			dockPanel.Extender.DockWindowSplitterControlFactory = new VS2010DockWindowSplitterControlFactory();
			dockPanel.Extender.DockWindowFactory = new VS2010DockWindowFactory();
			dockPanel.Extender.PaneIndicatorFactory = new VS2010PaneIndicatorFactory();
			dockPanel.Extender.PanelIndicatorFactory = new VS2010PanelIndicatorFactory();
			dockPanel.Extender.DockOutlineFactory = null;
			dockPanel.BackColor = Background;
			dockPanel.Padding = new Padding(6);
			dockPanel.Skin = CreateVisualStudio2010();

			dockPanel.MouseDown += (sender, e) => {
				dockPanel.ActiveAutoHideContent = null;
				dockPanel.Focus();
			};
			dockPanel.ActiveContentChanged += (sender, e) => {
				if (dockPanel.ActiveContent != null && dockPanel.ActiveAutoHideContent != null &&
				    dockPanel.ActiveContent != dockPanel.ActiveAutoHideContent)
					dockPanel.ActiveAutoHideContent = null;
			};
		}
開發者ID:mamingxiu,項目名稱:dnExplorer,代碼行數:30,代碼來源:VS2010Theme.cs

示例6: InternalConstruct

		private void InternalConstruct(DockPanel dockPanel, DockPane pane, bool boundsSpecified, Rectangle bounds)
		{
			if (dockPanel == null)
				throw(new ArgumentNullException(Strings.FloatWindow_Constructor_NullDockPanel));

			m_nestedPanes = new NestedPaneCollection(this);

			FormBorderStyle = FormBorderStyle.SizableToolWindow;
			ShowInTaskbar = false;
            if (dockPanel.RightToLeft != RightToLeft)
                RightToLeft = dockPanel.RightToLeft;
            if (RightToLeftLayout != dockPanel.RightToLeftLayout)
                RightToLeftLayout = dockPanel.RightToLeftLayout;
			
			SuspendLayout();
            if (boundsSpecified)
            {
                Bounds = bounds;
                StartPosition = FormStartPosition.Manual;
            }
            else
            {
                StartPosition = FormStartPosition.WindowsDefaultLocation;
                Size = dockPanel.DefaultFloatWindowSize;
            }

			m_dockPanel = dockPanel;
			Owner = DockPanel.FindForm();
			DockPanel.AddFloatWindow(this);
			if (pane != null)
				pane.FloatWindow = this;

			ResumeLayout();
		}
開發者ID:moljac,項目名稱:MonoMobile.SharpSNMP,代碼行數:34,代碼來源:FloatWindow.cs

示例7: MainLayout

        public MainLayout(DockPanel panel, List<ToolStripComboBox> comboBoxes, List<ToolStripButton> buttons, TrackBar trackBar, string path)
        {
            Logger = LogManager.GetLogger(Settings.Default.ApplicationLogger);

            Panel = panel;
            ComboBoxes = comboBoxes;
            Buttons = buttons;
            TrackBar = trackBar;

            if (!Directory.Exists(path))
                Directory.CreateDirectory(path);

            DockConfigPath = Path.Combine(path, Settings.Default.DockingConfigurationPath);

            TreeView = new TreeViewFrame();

            TreeView.SelectedDatabaseChanged += TreeView_SlectedDatabaseChanged;
            TreeView.PropertiesClick += TreeView_PropertiesClick;

            StepFrames = new Dictionary<TestMethod, StepFrame>();
            LogFrame = new LogFrame();

            PropertiesFrame = new PropertiesFrame();
            PropertiesFrame.Caller = TreeView;

            foreach (TestMethod method in GetTestMethods())
                StepFrames[method] = CreateStepFrame(method);
        }
開發者ID:blake2002,項目名稱:DatabaseBenchmark,代碼行數:28,代碼來源:MainLayout.cs

示例8: DockMenu

        public DockMenu(DockPanel dockPanel, Sys_UserMaster_usm_Info userInfo)
        {
            try
            {
                if (userInfo.usm_cUserLoginID.ToUpper() == "SA")
                {
                    treeNodeInfos = SystemMenuBLLFactory.Instance.GetISystemMenuBLL().GetMenuTreeNodes(CustEnum.System.HBManager);
                }
                else
                {
                    treeNodeInfos = SystemMenuBLLFactory.Instance.GetISystemMenuBLL().CheckUser(userInfo, CustEnum.System.HBManager);
                }

                foreach (TreeNodeInfo node in treeNodeInfos)
                {
                    if (node.Name == "SystemMenu")
                    {
                        node.Index = 4;
                    }
                    MenuToolForm mtf = new MenuToolForm(dockPanel, node, userInfo);
                    menuToolForms.Add(mtf);
                }
            }
            catch (Exception Ex)
            {
                throw Ex;
            }
        }
開發者ID:Klutzdon,項目名稱:PBIMSN,代碼行數:28,代碼來源:DockMenu.cs

示例9: DockingViewManager

 /// <summary>
 /// Setup constructor
 /// </summary>
 /// <param name="commandUi">Command UI manager. Any show command attached to views get added to this object</param>
 /// <param name="mainDockPanel">Main docking panel to dock views to</param>
 public DockingViewManager( ICommandUiManager commandUi, DockPanel mainDockPanel )
 {
     Arguments.CheckNotNull( commandUi, "commandUi" );
     Arguments.CheckNotNull( mainDockPanel, "mainDockPanel" );
     m_MainDockPanel = mainDockPanel;
     m_CommandUi = commandUi;
 }
開發者ID:johann-gambolputty,項目名稱:robotbastards,代碼行數:12,代碼來源:DockingViewManager.cs

示例10: DockWindow

 internal DockWindow(DockPanel dockPanel, DockState dockState)
 {
     this.m_nestedPanes = new NestedPaneCollection(this);
     this.m_dockPanel = dockPanel;
     this.m_dockState = dockState;
     this.Visible = false;
     this.SuspendLayout();
     if(this.DockState == DockState.DockLeft || this.DockState == DockState.DockRight
        || this.DockState == DockState.DockTop || this.DockState == DockState.DockBottom){
         this.m_splitter = new SplitterControl();
         this.Controls.Add(this.m_splitter);
     }
     if(this.DockState == DockState.DockLeft){
         this.Dock = DockStyle.Left;
         this.m_splitter.Dock = DockStyle.Right;
     } else if(this.DockState == DockState.DockRight){
         this.Dock = DockStyle.Right;
         this.m_splitter.Dock = DockStyle.Left;
     } else if(this.DockState == DockState.DockTop){
         this.Dock = DockStyle.Top;
         this.m_splitter.Dock = DockStyle.Bottom;
     } else if(this.DockState == DockState.DockBottom){
         this.Dock = DockStyle.Bottom;
         this.m_splitter.Dock = DockStyle.Top;
     } else if(this.DockState == DockState.Document){
         this.Dock = DockStyle.Fill;
     }
     this.ResumeLayout();
 }
開發者ID:hksonngan,項目名稱:sharptracing,代碼行數:29,代碼來源:DockWindow.cs

示例11: MainForm

        public MainForm()
        {
            InitializeComponent();

            // Create and Add docking Panel:
            m_oDockPanel = new DockPanel();
            m_oDockPanel.DocumentStyle = DocumentStyle.DockingWindow;
            m_oDockPanel.Dock = DockStyle.Fill;
            m_oDockPanel.BackgroundImage = new Bitmap(UIConstants.PULSAR4X_LOGO);
            m_oDockPanel.BackgroundImageLayout = ImageLayout.Center;

            // set Mono only stuff:
            if (Helpers.UIController.Instance.IsRunningOnMono)
            {
                m_oDockPanel.SupportDeeplyNestedContent = false;
                m_oDockPanel.AllowEndUserDocking = false;
                m_oDockPanel.AllowEndUserNestedDocking = false;
            }

            m_oToolStripContainer.ContentPanel.Controls.Add(m_oDockPanel);

            // setup viewmodel:
            VM = new MenuViewModel();

            // bind menu items to game data:
            //this.Bind(c => c.Text, VM, d => d.GameDateTime);
            this.Text = "Pulsar4X - " + GameState.Instance.GameDateTime.ToString();
        }
開發者ID:EterniaLogic,項目名稱:Pulsar4x,代碼行數:28,代碼來源:MainForm.cs

示例12: ControlHostService

        public ControlHostService(Form mainForm)
        {
            m_controls = new ActiveCollection<ControlInfo>();
            m_controls.ActiveItemChanged += controls_ActiveItemChanged;
            m_controls.ActiveItemChanging += controls_ActiveItemChanging;
            m_controls.ItemAdded += controls_ItemAdded;
            m_controls.ItemRemoved += controls_ItemRemoved;

            m_mainForm = mainForm;

            m_dockPanel = new DockPanel();
            m_dockPanel.Dock = DockStyle.Fill;
            m_dockPanel.DockBackColor = mainForm.BackColor;
            m_dockPanel.ShowDocumentIcon = true;
            m_dockPanel.ActiveContentChanged += dockPanel_ActiveContentChanged;
            m_dockPanel.ContentAdded += DockPanelContentAdded;
            m_dockPanel.ContentRemoved += DockPanelContentRemoved;

            // default behavior - when double clicking a float window's title it will
            // maximize the floating window instead of docking the floating window
            DoubleClickFloatWindowTitleMaximizes = true;

            // try a default delay (in milliseconds!)
            MouseOverTabSwitchDelay = 250;

            m_uiLockImage = ResourceUtil.GetImage24(Resources.LockUIImage);
            m_uiUnlockImage = ResourceUtil.GetImage24(Resources.UnlockUIImage);
        }
開發者ID:sbambach,項目名稱:ATF,代碼行數:28,代碼來源:ControlHostService.cs

示例13: WindowsMenuManager

 internal WindowsMenuManager(ToolStripMenuItem windowsMenu,
     List<DockContent> startupPanes, DockPanel dockPanel)
 {
     _windowsMenu = windowsMenu;
     _dockPanel = dockPanel;
     InitItems(startupPanes);
 }
開發者ID:Aquilon96,項目名稱:ags,代碼行數:7,代碼來源:WindowsMenuManager.cs

示例14: EditorContainer

 //private DockPanel _DockPanel;
 //private DockState _DockState;
 public EditorContainer(Editor editor, DockPanel dock, DockState dockState = DockState.Document)
 {
     Editor = editor;
     Editor.UndoRedoStateChanged += Editor_UndoRedoStateChanged;
     Editor.TextChangedDelayed += Editor_TextChangedDelayed;
     Splitter = new Splitter() { Dock = DockStyle.Right, BackColor = SystemColors.ControlDarkDark, Width = 4 };
     DocumentMap = new DocumentMap() {
         Target = editor,
         Dock = DockStyle.Right,
         Width = DocumentMapInitialWidth,
         MinimumSize = new Size(DocumentMapMinimumWidth, 0),
         Scale = DocumentMapInitialWidth * DocumentMapScaleFactor,
         BackColor = EditorSyntax.Styles.Background,
         ForeColor = Color.FromArgb(0, 122, 204)
     };
     DocumentMap.DoubleClick += DocumentMap_DoubleClick;
     DocumentMap.MouseWheel += DocumentMap_MouseWheel;
     Splitter.SplitterMoved += Splitter_SplitterMoved;
     Name = Editor.File.FileName;
     ToolTipText = Editor.File.Path;
     Controls.Add(Editor);
     Controls.Add(Splitter);
     Controls.Add(DocumentMap);
     UpdateText(true);
     FormClosing += EditorContainer_FormClosing;
     FormClosed += EditorContainer_FormClosed;
     System.Threading.Thread.Sleep(10);
     dock.Invoke(new Action(() => { Show(dock, dockState); }));
 }
開發者ID:rbrzezinski,項目名稱:Trax,代碼行數:31,代碼來源:EditorContainer.cs

示例15: Destroy

 // 銷毀
 public void Destroy(DockPanel dockPanel)
 {
     // 保存配置界麵
     String applicationPath = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;
     String szConfigFile = Path.Combine(Path.GetDirectoryName(applicationPath), "WorldEditor.DockPanel.config");
     dockPanel.SaveAsXml(szConfigFile);
 }
開發者ID:arundev,項目名稱:dev-code,代碼行數:8,代碼來源:SceneModule.cs


注:本文中的WeifenLuo.WinFormsUI.Docking.DockPanel類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。