Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

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

Closed
rajesh-smartwebtech opened this issue Dec 3, 2019 · 6 comments
Labels

Comments

@rajesh-smartwebtech
Copy link

rajesh-smartwebtech commented Dec 3, 2019

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
Copy link
Author

hi sir , @Wagnerp

@rajesh-smartwebtech
Copy link
Author

is it possible merge Dockspace components run time ?

@Wagnerp
Copy link
Collaborator

Wagnerp commented Dec 4, 2019

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?

@Wagnerp Wagnerp changed the title kryptonDockingManager merge runtime DockingEdge ? [Question]: Is it possible to merge KryptonDockingManager DockingEdge at runtime? Dec 4, 2019
@rajesh-smartwebtech
Copy link
Author

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

@Wagnerp
Copy link
Collaborator

Wagnerp commented Dec 5, 2019

Hi @rajesh-smartwebtech

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

Is this what you need #201

@Wagnerp
Copy link
Collaborator

Wagnerp commented May 11, 2020

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

@Wagnerp Wagnerp closed this as completed May 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants