With the DockManager, is there a way to display an indicator like a small arrow when a tab is moved to another position? Somewhat like FireFox does here:
Thanks
Hi,
Maybe will be possible if you are using CreationFilter and ImageUIElement. I made small sample where I`m using the code below:
public class CreatingUIElement : IUIElementCreationFilter { public static Image im; public static TabItemUIElement elm; public void AfterCreateChildElements(UIElement parent) { TabItemUIElement El = parent as TabItemUIElement; if (El != null && elm != null) { ImageUIElement img = new ImageUIElement(elm, im); img.Rect = new Rectangle(elm.Rect.X, elm.Rect.Y, 10, 20); img.Scaled = true; elm.ChildElements.Add(img); } } public bool BeforeCreateChildElements(UIElement parent) { return false; } }
public class CreatingUIElement : IUIElementCreationFilter
{
public static Image im;
public static TabItemUIElement elm;
public void AfterCreateChildElements(UIElement parent)
TabItemUIElement El = parent as TabItemUIElement;
if (El != null && elm != null)
ImageUIElement img = new ImageUIElement(elm, im);
img.Rect = new Rectangle(elm.Rect.X, elm.Rect.Y, 10, 20);
img.Scaled = true;
elm.ChildElements.Add(img);
}
public bool BeforeCreateChildElements(UIElement parent)
return false;
Please take a look at the attached video file to see the new behvaior. Let me know if you have any questions.
Regards
Hi Georgi,
Sorry for the late reply.
Thanks for the suggestion but this is not what we're looking for. Do you think it would be possible with some kind of drawfilter?
Have you been able to resolve your issue ? Let me know if you have any further questions.
Regrads
Hello AIRCOMServer,
The mentioned arrows are available if you are using UltraTabControl. In your scenario with UltraDockManager at that moment we have not such kind fucntionality with small arrows, but I think that you could used much better drop idicator for the users if you are using the properties below:
- DragIndicatorStyle = VisualStudio2008Vista
- DragWindowStyle = LayerWindowWithIndicators
- DragWindowOpacity = 0.3
- DragWindowColor = Color.DarkBlue
Please let me know if you have any questions.
Just to be clear, here's the scenario again:
Using a DockManager, I have several panels docked in the same area and each one is displaying a tab (in a tab row). When doing a drag&drop operation to move one of the tab from one position to another, there are no drop indicator to visually help the user. Is there a way to display a drop indicator? Something like Excel of Firefox displays when dragging a tab.