Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
Only show icons on tabs
posted

I will like to only show icons on tabs without emptying the text.  I want text to appear in the caption, but not on the tab. I am setting the TabLocation to Location.Left and the text is taking a lot of space and this is the reason I want to only show icons.

Also, the tabs start at the bottom.  I will like them to start from the top and go down.  I noticed that if I dock to the right and set the tab location to the right the tabs start at the top and go down.  I want that behavior on the left side.

Parents Reply
  • 7555
    Verified Answer
    Offline posted in reply to Jose A. Hernandez

    Hello Jose,


    Thank you for the update. You can use '
    TextTab' property of the pane. This is the text displayed in the tab for the pane. However, if this property is null, it will resolve to using the Text property. The NavigatorForm uses the Text property on the pane. set TextTab property on the panes to string.empty.

    I have created a small demo sample for your reference.

    About your other requirement of aligning the tabs to the top left instead of bottom left , There's no way to orient that tabs to the top, this is still a new feature idea.

    But as you are willing to update the source code you could modify it in the GroupTabManager.TabOrientation implementation.

    Right now, it's taking TabLocation and also just resolving it to LeftBottom. So you could change that to return LeftTop. Or maybe add some kind of extender and check that, upto you.

    Like this:

    TabOrientation ITabProvider.TabOrientation
    {
    get
    {
    switch(this.Group.GroupSettingsResolved.TabLocation)
    {
    default:
    case Location.Bottom:
    return TabOrientation.BottomLeft;
    case Location.Top:
    return TabOrientation.TopLeft;
    case Location.Left:
    //return TabOrientation.LeftBottom;
    return TabOrientation.LeftTop;
    case Location.Right:
    return TabOrientation.RightTop;
    }
    }
    }


    MikeS tested it out and it seems to work at our end.

    Let me know if you have any question.

    Thank you,

    Divya Jain

Children