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].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)