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
720
Collapse XamTab
posted

Hi,

I have a xamtab control with two tabs. Following are my requirements

1. I have a checkbox  which when selected hides the second tab (Including the contents of the tab). This I can get it done using header visibility as collapsed

2. Now my first tab is the only visible item. THis tab has a xamdatagrid control in it. What I want is when the second tab has been collapsed I want this first tab header alone to be collapsed. What I mean is the datagrid should be visible in the tab control but the tab header should disappear. This enables saving the vertical space in the screen which is occupied by the tab's header.

Thanks

Chev

Parents
  • 22015
    Verified Answer
    posted

    Hello Ranjith,

     

    Thank you for your post.

     

    I have been looking into your issue and have created a small sample application for you. In the sample application I have a style which targets the TabItemEx. The style sets the visibility of the first items in the  XamTabControl. When there is a second tab added in the XamTabControl both of the tab headers would be visible.

     

    Please find the attached sample application and feel free to let me know if you have any further questions on this matter.

    TabControl_HeaderVisibility.zip
Reply Children