本文整理汇总了C#中WeifenLuo.WinFormsUI.Docking.DockPanel类的典型用法代码示例。如果您正苦于以下问题:C# DockPanel类的具体用法?C# DockPanel怎么用?C# DockPanel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DockPanel类属于WeifenLuo.WinFormsUI.Docking命名空间,在下文中一共展示了DockPanel类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: DoAprilFoolWindow
public static void DoAprilFoolWindow(DockPanel panel)
{
foreach(DockContent c in panel.Contents)
{
var form = c.FindForm();
form.Text = kamos[rand.Next(0, kamos.Length)];
}
}
开发者ID:CoRelaxuma,项目名称:HoppoAlpha,代码行数:8,代码来源:AprilFool.cs
示例17: VS2005AutoHideStrip
public VS2005AutoHideStrip(DockPanel panel)
: base(panel)
{
SetStyle(ControlStyles.ResizeRedraw, true);
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
BackColor = SystemColors.Control;
}
开发者ID:thecocce,项目名称:flashdevelop,代码行数:8,代码来源:VS2005AutoHideStrip.cs
示例18: VS2003AutoHideStrip
public VS2003AutoHideStrip(DockPanel panel)
: base(panel)
{
SetStyle(ControlStyles.ResizeRedraw, true);
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
BackColor = Color.WhiteSmoke;
}
开发者ID:JavierCabrera,项目名称:dockpanelsuite,代码行数:8,代码来源:VS2003AutoHideStrip.cs
示例19: 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
示例20: AmusementBuyForm
public AmusementBuyForm(GameRecords m, DockPanel parent)
{
InitializeComponent();
this.dockPanel = parent;
model = m;
color = Color.Yellow;
this.Hide();
}
开发者ID:jamafyna,项目名称:park,代码行数:8,代码来源:AmusementBuyForm.cs
注:本文中的WeifenLuo.WinFormsUI.Docking.DockPanel类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论