Krypton-Suite-Legacy-Archive / Krypton-NET-5.470

A update to Component factory's krypton toolkit to support the .NET 4.7 framework.
BSD 3-Clause "New" or "Revised" License
78 stars 20 forks source link

[Question]: Is it possible to merge KryptonDockingManager DockingEdge at runtime? #241

Closed rajesh-smartwebtech closed 4 years ago

rajesh-smartwebtech commented 4 years ago

hi @Wagnerp

how can i merge Dockspace runtime ? This is code

            // Add initial docking pages
            kryptonDockingManager.AddDockspace("Control", DockingEdge.Left, new KryptonPage[] { DATA() });
            kryptonDockingManager.AddDockspace("Control", DockingEdge.Bottom, new KryptonPage[] { NNDATA() });
rajesh-smartwebtech commented 4 years ago

hi sir , @Wagnerp

rajesh-smartwebtech commented 4 years ago

is it possible merge Dockspace components run time ?

PWagner1 commented 4 years ago

Hi @rajesh-smartwebtech

I'm not familiar to the KryptonDockingManager, but it should be possible to do. What context are you trying to do it for?

rajesh-smartwebtech commented 4 years ago

Hi @Wagnerp
i am explain for it

I am using win 10 and visual studio 2015 Community

i need docking KryptonWorkspaceCell position change action run time.

There are description screenshot about this action Thank you @Wagnerp

This screenshot about default form controls Initialize_form_controls

This screenshot about runtime default screen showing Initialize_form

This screenshot about need operation, there are need perform by code run time Runtime_Action

This screenshot about operation after screen look Need_Screen_Action

This is my code

    private void Form1_Load(object sender, EventArgs e)
    {

        // Setup docking functionality
        KryptonDockingWorkspace w = kryptonDockingManager.ManageWorkspace(kryptonDockableWorkspace);
        kryptonDockingManager.ManageControl(kryptonPanel, w);
        kryptonDockingManager.ManageFloating(this);

        // Add initial docking pages
        kryptonDockingManager.AddDockspace("Control", DockingEdge.Left, new KryptonPage[] { NewWinPropertyGrid() });
        kryptonDockingManager.AddDockspace("Control", DockingEdge.Bottom, new KryptonPage[] { NewWinConfiguration(), NewWinHTML(), NewWinData() });

        kryptonDockingManager.AddToWorkspace("Workspace", new KryptonPage[] { NewWinPage() });

    }

i am getting KryptonWorkspaceCell run time following code There are not found property or method for run time

    foreach (var ii in kryptonDockingManager.CellsDocked)
    {
        //MessageBox.Show( " doc cell : " + i +  "\n pages : " + ii.Pages.Count + "\n" + ii.ToString());

        if(i == 2)
        {
            var pm = ii;
            //ii.Parent = kryptonDockingManager.CellsDocked[0].Parent;
            //here i cannot found property for change Docking runtime
        }

        i++;
    }

so i here not found any property run time change docking position i hope you understood me

PWagner1 commented 4 years ago

Hi @rajesh-smartwebtech

So is the question about setting a default docking position for a panel at runtime?

Is this what you need https://github.com/Wagnerp/Krypton-NET-5.470/issues/201

PWagner1 commented 4 years ago

Closing issue due to inactive response from 5th December 2019.