WPF TabControl collapsed tab headers are not completely hidden -
I am using TabControl to show or hide programs in form control groups. I have implemented the technique described and it works almost as expected, except that a band in that space is about 1 or 2 pixels high, where tab headers are displayed normally.
I have verified this using it, navigate to the visual tree and observe the movement of the highlight rectangle because each element is selected. The size of the rectangle for tab content element is smaller than the different tab control, which I see is an extra pixel account.
To get the right alignment with other controls, I need to eliminate this extra space, but I'm not sure how. However, the question I probably should ask is, "Is there a better way to choose / hide groups of selective control?"
Thank you for your thoughts, Tim
I think the thin line < Code> TabPanel , which is still there, although all However, if you have Of course, you have to implement a converter which changes 0 to BTW: You can get the default TabItem
TabControl
of ControlTemplate < / Code> and with the number of the
TabPanel
of the visibility
tab, such as:
& lt; TapPerel ... Visibility = "{binding item.Count, relative Soros = {relative serous FindAncestor, type = {X: type tab control}}, converter = {static resource zerotoklopsid convertor}}" ... / ...
visibility. Collapsed
and all other values to visibility. Visible
. ControlTemplate
for TabControl
.
Comments
Post a Comment