Exemplo n.º 1
0
        /// <summary>
        /// Show content into default documents pane
        /// </summary>
        public void ShowAsDocument()
        {
            if (ContainerPane == null)
            {
                _containerPane = DockManager.AddDocument(this);
            }

            ContainerPane.Show(this);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Show this content
 /// </summary>
 /// <remarks>Show this content in a dockable pane. If no pane was previuosly created, it creates a new one with default right dock. </remarks>
 public override void Show()
 {
     if (ContainerPane != null)
     {
         ContainerPane.Show(this);
         //ContainerPane.Show();
     }
     else
     {
         Show(Dock.Right);
     }
 }
Exemplo n.º 3
0
        /// <summary>
        /// Show this content
        /// </summary>
        /// <param name="dock">New dock border</param>
        /// <remarks>Show this content in a dockable pane. If no pane was previuosly created, it creates a new one with passed initial dock. </remarks>
        private void _Show(Dock dock)
        {
            FloatingWindow window = _GetRelatedFloatingWnd();

            if (null != window)
            {
                window.Show();
            }
            else
            {
                ContainerPane.UseSpecAllocation = true;
                ContainerPane.Show(dock);
            }

            FireVisibileStateChanged();
        }
Exemplo n.º 4
0
 /// <summary>
 /// Show this content
 /// </summary>
 /// <remarks>Show this content in a dockable pane. If no pane was previuosly created, it creates a new one with passed initial dock. </remarks>
 public void Show(Dock dock)
 {
     if (ContainerPane == null)
     {
         _containerPane = new DockablePane(DockManager, dock);
         //_containerPane.DockManager = DockManager;
         _containerPane.Add(this);
         _containerPane.Show();
         //DockManager.Add(this);
         DockManager.Add(_containerPane as DockablePane);
     }
     else
     {
         ContainerPane.Show(this);
         ContainerPane.Show();
     }
 }