Stop page sliding in

Topics related to the Krypton Docking.

Moderators: Phil Wright, Chris Porter

Stop page sliding in

Postby kevin.white » Tue Jul 24, 2012 7:09 pm

I have a page which is auto hidden. On the page I have a browse button which opens an OpenFileDialog to allow the user to select a file. When the OpenFileDialog is shown the page slides in (i.e. disappears). This means that having chosen a file the user has to open the page again to continue. Is there a way to prevent the page disappearing? If not is there a way to re-open the page from code?

I could call MakeDockedRequest to stop the page disappearing but I don't want to leave it in that state, as user may not know what has happened, and if I do a MakeAutoHiddenRequest after OpenFileDialog has closed the page still disappears.

I am creating the pages like this (where controls is List<UserControl> ):

KryptonPage[] pages = new KryptonPage[controls.Count];
for (int i = 0; i < pages.Length; ++i)
{
controls[i].Dock = DockStyle.Fill;
pages[i] = new KryptonPage();
pages[i].Text = controls[i].Name;
pages[i].TextTitle = pages[i].Text;
pages[i].TextDescription = pages[i].Text;
pages[i].UniqueName = pages[i].Text;
pages[i].Controls.Add(controls[i]);
pages[i].Flags = (int)flags | (int)KryptonPageFlags.AllowConfigSave;
pages[i].AutoHiddenSlideSize = new Size(controls[i].MinimumSize.Width, pages[i].AutoHiddenSlideSize.Height);

pages[i].VisibleChanged += new EventHandler(OnVisibleChanged);

}
kryptonDockingManager.AddDockspace("Control", position, pages);
foreach (var x in pages)
kryptonDockingManager.MakeAutoHiddenRequest(x.UniqueName);
kevin.white
 
Posts: 2
Joined: Tue Jul 24, 2012 7:00 pm

Re: Stop page sliding in

Postby kevin.white » Tue Jul 24, 2012 7:15 pm

Note, I am using version 4.3.2.
kevin.white
 
Posts: 2
Joined: Tue Jul 24, 2012 7:00 pm


Return to Krypton Docking

Who is online

Users browsing this forum: No registered users and 3 guests