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


C# DockingManager类代码示例

本文整理汇总了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();
        }
开发者ID:x-skywalker,项目名称:CodeMask,代码行数:29,代码来源:NavigatorWindow.cs

示例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"));
        }
开发者ID:m-berkani,项目名称:ClearCanvas,代码行数:33,代码来源:DesktopForm.cs

示例3: DockingManagerOverlayArea

        internal DockingManagerOverlayArea(IOverlayWindow overlayWindow, DockingManager manager)
            : base(overlayWindow)
        {
            var manager1 = manager;

            SetScreenDetectionArea(new Rect(
                manager1.PointToScreenDpi(new Point()),
                manager1.TransformActualSizeToAncestor()));
        }
开发者ID:vebin,项目名称:ModernApplicationFramework,代码行数:9,代码来源:DockingManagerOverlayArea.cs

示例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();
        }
开发者ID:Guiedo,项目名称:BehaviorIsManaged,代码行数:9,代码来源:LayoutSerializer.cs

示例5: InitPanes

 public void InitPanes(DockingManager dock)
 {
     if(IsInitialized)
     {
         throw new Exception("Panes already initialized");
     }
     _dock=dock;
     _dock.NewDockStateEndLoad+=new EventHandler(_dock_NewDockStateEndLoad);
 }
开发者ID:Nullstr1ng,项目名称:dotnet-regex-tools,代码行数:9,代码来源:PaneDisplay.cs

示例6: DockingManagerOverlayArea

        internal DockingManagerOverlayArea(IOverlayWindow overlayWindow, DockingManager manager)
            : base(overlayWindow)
        {
            _manager = manager;

            base.SetScreenDetectionArea(new Rect(
                _manager.PointToScreenDPI(new Point()),
                _manager.TransformActualSizeToAncestor()));
        }
开发者ID:JeremyDurnell,项目名称:ChromeTabs,代码行数:9,代码来源:DockingManagerOverlayArea.cs

示例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;
                }
            }
        }
开发者ID:qjw2bqn,项目名称:Esri-Geometry-Network-Configuration-Manager,代码行数:16,代码来源:FocusElementManager.cs

示例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);
        }
开发者ID:austinedeveloper,项目名称:WpfExtendedToolkit,代码行数:18,代码来源:FocusElementManager.cs

示例9: AnimatContent

 public AnimatContent(DockingManager manager, Control control, string title, Icon icon)
     : base(manager, control, title, icon)
 {
 }
开发者ID:NeuroRoboticTech,项目名称:AnimatLabPublicSource,代码行数:4,代码来源:AnimatContent.cs

示例10: AutoHideWindowManager

 internal AutoHideWindowManager(DockingManager manager)
 {
     _manager = manager;
     SetupCloseTimer();
 }
开发者ID:qjw2bqn,项目名称:Esri-Geometry-Network-Configuration-Manager,代码行数:5,代码来源:AutoHideWindowManager.cs

示例11: XmlLayoutSerializer

		public XmlLayoutSerializer(DockingManager manager)
			: base(manager)
		{
			_serializer = new XmlSerializer(typeof(LayoutRoot));
		}
开发者ID:xbadcode,项目名称:Rubezh,代码行数:5,代码来源:XmlLayoutSerializer.cs

示例12: PaneDisplay

 public PaneDisplay(DockingManager dock)
 {
     InitPanes(dock);
 }
开发者ID:Nullstr1ng,项目名称:dotnet-regex-tools,代码行数:4,代码来源:PaneDisplay.cs

示例13: XmlLayoutSerializer

 public XmlLayoutSerializer(DockingManager manager)
     : base(manager)
 {
 }
开发者ID:x-skywalker,项目名称:CodeMask,代码行数:4,代码来源:XmlLayoutSerializer.cs

示例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);
            }
        }
开发者ID:nhannd,项目名称:Xian,代码行数:14,代码来源:DesktopWindowView.cs

示例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);
            }
        }
开发者ID:nhannd,项目名称:Xian,代码行数:12,代码来源:DesktopWindowView.cs


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