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
I have this to change the tabs colors when selected/unselected
{
.....
this.radDock1.ActiveWindowChanging += new DockWindowCancelEventHandler(radDock1_ActiveWindowChanging);
this.radDock1.ActiveWindowChanged += new DockWindowEventHandler(radDock1_ActiveWindowChanged);
}
void radDock1_ActiveWindowChanged(object sender, DockWindowEventArgs e)
{
SizeAndColorSelectedDocWindowTab(e.DockWindow.TabStripItem, Color.LightBlue, Color.CornflowerBlue);
}
void radDock1_ActiveWindowChanging(object sender, DockWindowCancelEventArgs e)
{
SizeAndColorUnSelectedDocWindowTab(e.OldWindow.TabStripItem, Color.CornflowerBlue, Color.DarkBlue);
}
But how can I change the color of the Tab title? when unselected the text almost disappears, I would like to change to a whiter color
Also, this works when the children are Tabbed, how can I implement something similar on titlebar when DockPosition.Left (or anything else than tabbed) ?
Hello,
We have a RadTreeView control inside a ToolWindow (with Dock = Fill) in a RadDock control. The nodes are added to the tree programmatically and AllowArbitraryItemHeight=false and TreeViewElement.AutoSizeItems=true. There is no ItemHeight set at all. We are sporadically getting an issue where the RadTreeView won’t let the user scroll to the bottom of the tree. We can’t consistently reproduce this error however. Is there any advice you can give how to try figure out what is going on?
Thanks,
Hayley
I have a mdi parent with raddock control, I add new forms and I can use the mouse to change the layout of the mdi child in the parent but I cannot make the layoutMDI to work to change the layout
this.LayoutMdi(MdiLayout.TileHorizontal);
Just doing something simple to get the idea
private void Form1_Load(object sender, EventArgs e)
Hi,
I have a control that is opened as a floating HostWindow. This control is composed of a RadPageView and a RadPanel and all these elements have the margins and paddings set to 0. Also, BorderStyle properties are set to None but I still see the borders there (see image attached).
There is any way to remove these borders?
I have a RadDock with several MdiChildren/DockWindows. When the user closes one of the tabs I want the focus to be set to the previously active tab.
In the ActiveWindowChanged event I remeber the previous active tab.
I've tried both the radDock.ActivateMdiChild(Form) and radDock.ActivateWindow(DockWindow) methods
What am I missing?
bool exists = (Array.IndexOf(radDock.MdiChildren, _currentMdi) != -1);
if (!exists && _prevMdi != null)
{
_currentMdi = null;
_currentDockWindow = null;
//radDock.ActivateMdiChild(_prevMdi);
radDock.ActivateWindow(_prevDockWindow);
}
_prevMdi = _currentMdi;
_currentMdi = (Form) ((HostWindow) e.DockWindow).Content;
Hello!
RadPageView has a setting called "ItemSpacing" that adjusts the gap between RadPageViewPage controls.
Is there any way to get a similar result for RadDock?
Cheers!
C
Hello.
I am using RadRibbonBar (Main Form). I have multiple buttons in ribbon. Each button has different forms. I want dock them inside its Main Form on click. here is an example in below screenshot. I am unable to achieve the requirement.
Please note: The child form should dock exactly below the ribbon form. and also, the cross button (child form close button) should be present right after the tab (Child form name).
Please attach a zip file with a source code.
Thanks
Hello everyone! These days, I am doing some research with the RadDock control and encountering a difficulty when I'm trying to completely remove the borders and visually merge individual DockWindow elements. As far as I can see, achieving this requires removing some additional spitter elements, but I haven't had much success so far.
I would appreciate your help with this.
Kind Regards,
Simeon