Hi.
I made tool window to floating.
private void MakeDefaultToolWidow(string title, RadForm from)
{
ToolWindow newTool = new ToolWindow();
newTool.Text = title;
newTool.CloseAction = DockWindowCloseAction.Close;
from.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
from.TopLevel = false;
from.Dock = DockStyle.Fill;
newTool.Controls.Add(from);
newTool.DefaultFloatingSize = from.Size;
CurrentDock.FloatWindow(newTool);
CurrentDock.ActiveWindow = newTool;
from.Show();
}
And, I docked this toolwindow to top(or anywhere).
At this time
CurrentDock.FloatingWindows.Count is 1.
And I Undock that toolwindow.
CurrentDock.FloatingWindows Count is 2.
Now Some button click and run belows.
foreach (FloatingWindow floating in CurrentDock.FloatingWindows)
{
floating.Hide();
}
foreach (FloatingWindow floating in CurrentDock.FloatingWindows)
{
floating.Show();
}
Dummy FloatingWindow shown.
Dummy is will be diappear when I move it.
I think when toolwindow is docked, FloatingWindows.Count should be decreased.
and Floating again. it will be increase.
I want Hide/Show all FloatingWindows.
check it please.
Thank you.
I made tool window to floating.
private void MakeDefaultToolWidow(string title, RadForm from)
{
ToolWindow newTool = new ToolWindow();
newTool.Text = title;
newTool.CloseAction = DockWindowCloseAction.Close;
from.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
from.TopLevel = false;
from.Dock = DockStyle.Fill;
newTool.Controls.Add(from);
newTool.DefaultFloatingSize = from.Size;
CurrentDock.FloatWindow(newTool);
CurrentDock.ActiveWindow = newTool;
from.Show();
}
And, I docked this toolwindow to top(or anywhere).
At this time
CurrentDock.FloatingWindows.Count is 1.
And I Undock that toolwindow.
CurrentDock.FloatingWindows Count is 2.
Now Some button click and run belows.
foreach (FloatingWindow floating in CurrentDock.FloatingWindows)
{
floating.Hide();
}
foreach (FloatingWindow floating in CurrentDock.FloatingWindows)
{
floating.Show();
}
Dummy FloatingWindow shown.
Dummy is will be diappear when I move it.
I think when toolwindow is docked, FloatingWindows.Count should be decreased.
and Floating again. it will be increase.
I want Hide/Show all FloatingWindows.
check it please.
Thank you.