I have a WPC TabControl with some TabItems. I want the fields to the left and right of the TabItems group, if that makes sense.
Below I will talk about ASCII art to understand the essence. I want the fixed margin to the left of the tab one, but I also want the fixed margin to the right of the tab three.
|--------------------------------------------------| | |-----||-----||-----| | | <-Margin-> | 1 || 2 || 3 | <-Margin-> | |------------| ||-----||-----|-----------------| | | | How do I get margin or padding on both | | sides of my tabs? | | | | | |--------------------------------------------------|
The number of tabs is not limited, so they will add up as you add more. To do this, you need to work correctly.
Also, note that I do not want the entire tab control to be smaller. Only tabitem tabs or headers or whatever they are.
I found that if I set tabs with a margin of approximately â60.0, -60.0â, I get the desired effect to the left of the tabs, but it seems to be a hack and win work on the right side.
I am using WPF 4.0 in VS 2010.
Hooray!
Michael
source share