Let WPF Tabcontrol height assume height of largest item?

前端 未结 5 861
余生分开走
余生分开走 2020-12-09 04:46

Is there any way to have to tabcontrol take the size of the largest tab item (well, actually, the tabitem\'s content)?

Since the tabcontrol has no specific size assi

5条回答
  •  情深已故
    2020-12-09 05:31

    It's probably not in the proper WPF way, but, if you already have all the content elements, you could maybe loop through them on load and set the height of the TabControl programatically.

提交回复
热议问题