本文整理汇总了C#中DockingManager类的典型用法代码示例。如果您正苦于以下问题:C# DockingManager类的具体用法?C# DockingManager怎么用?C# DockingManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DockingManager类属于命名空间,在下文中一共展示了DockingManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NavigatorWindow
internal NavigatorWindow(DockingManager manager)
{
_manager = manager;
_internalSetSelectedDocument = true;
SetAnchorables(
_manager.Layout.Descendents()
.OfType<LayoutAnchorable>()
.Where(a => a.IsVisible)
.Select(d => (LayoutAnchorableItem) _manager.GetLayoutItemFromModel(d))
.ToArray());
SetDocuments(
_manager.Layout.Descendents()
.OfType<LayoutDocument>()
.OrderByDescending(d => d.LastActivationTimeStamp.GetValueOrDefault())
.Select(d => (LayoutDocumentItem) _manager.GetLayoutItemFromModel(d))
.ToArray());
_internalSetSelectedDocument = false;
if (Documents.Length > 1)
InternalSetSelectedDocument(Documents[1]);
DataContext = this;
Loaded += OnLoaded;
Unloaded += OnUnloaded;
UpdateThemeResources();
}
示例2: DesktopForm
/// <summary>
/// Constructor
/// </summary>
public DesktopForm()
{
#if !MONO
SplashScreenManager.DismissSplashScreen(this);
#endif
InitializeComponent();
//Set both to be initially invisible, since there's nothing on them.
_toolbar.Visible = false;
_mainMenu.Visible = false;
// manually subscribe this event handler *after* the call to InitializeComponent()
_toolbar.ParentChanged += OnToolbarParentChanged;
_dockingManager = new DockingManager(_toolStripContainer.ContentPanel, VisualStyle.IDE2005);
_dockingManager.ActiveColor = SystemColors.Control;
_dockingManager.InnerControl = _tabbedGroups;
_dockingManager.TabControlCreated += OnDockingManagerTabControlCreated;
_tabbedGroups.DisplayTabMode = DisplayTabModes.HideAll;
_tabbedGroups.TabControlCreated += OnTabbedGroupsTabControlCreated;
if (_tabbedGroups.ActiveLeaf != null)
{
InitializeTabControl(_tabbedGroups.ActiveLeaf.TabControl);
}
ToolStripSettings.Default.PropertyChanged += OnToolStripSettingsPropertyChanged;
OnToolStripSettingsPropertyChanged(ToolStripSettings.Default, new PropertyChangedEventArgs("WrapLongToolstrips"));
OnToolStripSettingsPropertyChanged(ToolStripSettings.Default, new PropertyChangedEventArgs("IconSize"));
}
示例3: DockingManagerOverlayArea
internal DockingManagerOverlayArea(IOverlayWindow overlayWindow, DockingManager manager)
: base(overlayWindow)
{
var manager1 = manager;
SetScreenDetectionArea(new Rect(
manager1.PointToScreenDpi(new Point()),
manager1.TransformActualSizeToAncestor()));
}
示例4: LayoutSerializer
public LayoutSerializer(DockingManager manager)
{
if (manager == null)
throw new ArgumentNullException("manager");
_manager = manager;
_previousAnchorables = _manager.Layout.Descendents().OfType<LayoutAnchorable>().ToArray();
_previousDocuments = _manager.Layout.Descendents().OfType<LayoutDocument>().ToArray();
}
示例5: InitPanes
public void InitPanes(DockingManager dock)
{
if(IsInitialized)
{
throw new Exception("Panes already initialized");
}
_dock=dock;
_dock.NewDockStateEndLoad+=new EventHandler(_dock_NewDockStateEndLoad);
}
示例6: DockingManagerOverlayArea
internal DockingManagerOverlayArea(IOverlayWindow overlayWindow, DockingManager manager)
: base(overlayWindow)
{
_manager = manager;
base.SetScreenDetectionArea(new Rect(
_manager.PointToScreenDPI(new Point()),
_manager.TransformActualSizeToAncestor()));
}
示例7: FinalizeFocusManagement
internal static void FinalizeFocusManagement(DockingManager manager)
{
manager.PreviewGotKeyboardFocus -= new KeyboardFocusChangedEventHandler(manager_PreviewGotKeyboardFocus);
_managers.Remove(manager);
if (_managers.Count == 0) {
//InputManager.Current.EnterMenuMode -= new EventHandler(InputManager_EnterMenuMode);
//InputManager.Current.LeaveMenuMode -= new EventHandler(InputManager_LeaveMenuMode);
if (_windowHandler != null) {
_windowHandler.FocusChanged -= new EventHandler<FocusChangeEventArgs>(WindowFocusChanging);
//_windowHandler.Activate -= new EventHandler<WindowActivateEventArgs>(WindowActivating);
_windowHandler.Detach();
_windowHandler = null;
}
}
}
示例8: SetupFocusManagement
internal static void SetupFocusManagement(DockingManager manager)
{
if (_managers.Count == 0)
{
//InputManager.Current.EnterMenuMode += new EventHandler(InputManager_EnterMenuMode);
//InputManager.Current.LeaveMenuMode += new EventHandler(InputManager_LeaveMenuMode);
_windowHandler = new WindowHookHandler();
_windowHandler.FocusChanged += new EventHandler<FocusChangeEventArgs>(WindowFocusChanging);
//_windowHandler.Activate += new EventHandler<WindowActivateEventArgs>(WindowActivating);
_windowHandler.Attach();
if (Application.Current != null)
Application.Current.Exit += new ExitEventHandler(Current_Exit);
}
manager.PreviewGotKeyboardFocus += new KeyboardFocusChangedEventHandler(manager_PreviewGotKeyboardFocus);
_managers.Add(manager);
}
示例9: AnimatContent
public AnimatContent(DockingManager manager, Control control, string title, Icon icon)
: base(manager, control, title, icon)
{
}
示例10: AutoHideWindowManager
internal AutoHideWindowManager(DockingManager manager)
{
_manager = manager;
SetupCloseTimer();
}
示例11: XmlLayoutSerializer
public XmlLayoutSerializer(DockingManager manager)
: base(manager)
{
_serializer = new XmlSerializer(typeof(LayoutRoot));
}
示例12: PaneDisplay
public PaneDisplay(DockingManager dock)
{
InitPanes(dock);
}
示例13: XmlLayoutSerializer
public XmlLayoutSerializer(DockingManager manager)
: base(manager)
{
}
示例14: DockingManagerWindowActivatedEventHandler
private void DockingManagerWindowActivatedEventHandler(DockingManager dm, Window wd)
{
var content = ((WindowContent) wd).CurrentContent;
// seems that content may sometimes be null - not sure why
// in this case, just ignore the event
if (content != null)
{
var shelfView = (ShelfView)content.Tag;
// when activated, report both visible and active status
shelfView.SetVisibleStatus(true);
shelfView.SetActiveStatus(true);
}
}
示例15: FormDockingManagerWindowDeactivatedEventHandler
private void FormDockingManagerWindowDeactivatedEventHandler(DockingManager dm, Window wd)
{
var content = ((WindowContent) wd).CurrentContent;
// seems that content may sometimes be null - not sure why
// in this case, just ignore the event
if (content != null)
{
var shelfView = (ShelfView)content.Tag;
shelfView.SetActiveStatus(false);
}
}