I think this is similar to http://es.infragistics.com/community/forums/t/79405.aspx but that post lead more into themes.
This is the scenario, with an attached project to reproduce the behavior:
1. Create a XamTabControl with 2 TabItemEx tabs in it.
2. Put different content in each of the tab's content areas
3. Put the focus on either tab, and you'll see the tab's content as expected
4. Change the visibility of the selected tab to either collapsed or hidden
5. The issue: The collapsed/hidden tab object still has the content being displayed
I'm using VS2013 & Infragistics 14.1. The attached project reproduces the behavior 100% of the time and it's pure XAML.
With regards to #5, With the heiarchy of what's below, the content should also reflect the TabItemEx's visibility since it is a child object (or so I think).
tab control
tab <-- visibility is set at this level
header
content
Would anyone have any suggestions, or work arounds?
The behavior that I described and provided a sample project for was corrected... I'm presuming it was a bug. Georgina, the TabItemEx is not just the header- it has it's own content, which is why I was asking to begin with.
With 15.1, I'm seeing exactly what was expected: Changing the visibility to hidden or collapsed also hides or collapses the TabItemExs' content. Such was not the scenario when I posted previously.
Thank you
Checking in for feedback.
Using the sample project I provide, how is a tab completely hidden or collapsed then? Back to a WinForms world. hiding a tab did cascade it to the panel it contained. Still seems like either wrong behavior, bug or poor implementation.
It's a tab control, not a TabStrip control which is why I'm revisiting this post. Hide the tab and the entire object should be hid.
Hello jrelyea,
I am just checking if you have any further questions on this matter. Please do not hesitate to let me know if you do.
Thank you for your post!
I have been looking into your issue. Currently the TabItemEx represents the header of the tab. The content of the Tab is presented by the XamTabControl itself. This content of the tabs is presented by a ContentPresenter. It is placed right below the headers of the xamTabControl. When you set the Visibility of the TabItemEx to Collapse or Hidded it is expected the header to hide. The content is presented by the ContentPresenter and it is expected to be visible when the tab is selected.
Please do not hesitate to let me know if you have any further questions on this matter.