Movable document window

3 posts, 1 answers
  1. Slicc
    Slicc avatar
    2 posts
    Member since:
    Jun 2012

    Posted 24 Jun 2012 Link to this post

    If I add a tool window to a RadDock I can drag the window off the form to create a new window. If I add a document window, however, I cannot drag it off the form to create a new form like window. Can anyone advise what my options are here? Slicc
  2. Answer
    Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 27 Jun 2012 Link to this post

    Hi Steven,

    This feature is valid only for ToolWindow type of dock windows. The ToolWindow type of dock windows supports floating DockState and can also be docked in Document window container like a DocumentWindow instance. To support this functionality in your application, please change the instance of DocumentWindow with ToolWindow. Here is a sample example:

    using System.Windows.Forms;
    using Telerik.WinControls.UI.Docking;
     
    namespace Lab.Dock
    {
        public partial class DockDocumentToolWindow : MainForm
        {
            private RadDock radDock = new RadDock();
     
            public DockDocumentToolWindow()
            {
                InitializeComponent();
     
                radDock.Dock = DockStyle.Fill;
                radDock.Parent = this;
                radDock.BringToFront();
     
                DocumentWindow window = new DocumentWindow("MyDocument");
                
     
                ToolWindow tool = new ToolWindow("MyTool");
                radDock.DockWindow(tool, DockPosition.Right);
     
                radDock.AddDocument(window);
                radDock.AddDocument(tool);
            }
        }
    }

    Please view the attached screenshots for the result of ToolWindow dock operations.

    Greetings,
    Julian Benkov
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Slicc
    Slicc avatar
    2 posts
    Member since:
    Jun 2012

    Posted 27 Jun 2012 Link to this post

    That looks ideal. Thanks, Slicc
Back to Top