I have my TabControl
made in WPF with C#. But I display the window like a bar by using window position. I mean while displaying only tabheader will be display. My tab header are in the left side. When I press the tabheader 开发者_开发百科the window width will increse to fit the tab items content.
So I want the click event of tab headers in tabcontrol. How can I get that?
Two options:
- Set the window to auto size to it's content using the Window property:
SizeToContent
- Use the
TabControl
event:SelectionChanged
精彩评论