Hi
I’m using WinForms RadDock implementing a host and a bunch of DocumentWindow tabs.
The issue I’m having is setting the undocked floating window text so that the window shown in the Taskbar displays the text set, I'm getting the taskbar entry but it's always blank. I’ve tried a few approaches and none are successful. See code below.
private void MainDockHost_FloatingWindowCreated(object sender, FloatingWindowEventArgs e)
{
// first attempt
e.Window.Text = "First Window";
// second attempt
CustomFloatingWindow customWindow = new CustomFloatingWindow(MainDockHost);
e.Window = customWindow;
customWindow.Text = "Second Window";
// third attempt
HostWindow hostWin1 = e.Window.Parent as HostWindow;
if (hostWin1 != null)
{
hostWin1.Text = "Third Window";
if (hostWin1.FloatingParent != null)
{
hostWin1.FloatingParent.Text = hostWin1.Text;
}
}
// forth attempt
HostWindow hostWin2 = customWindow.Parent as HostWindow;
if (hostWin2 != null)
{
hostWin2.Text = "Forth Window";
if (hostWin2.FloatingParent != null)
{
hostWin2.FloatingParent.Text = hostWin2.Text;
}
}
}
As I’m using a document window I understand a floating window is created with the document window inside it. The two HostWindow attempts in the code both result in a null.
Any help with this would be appreciated.
Thanks
Miles