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 leftside. 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?
A:
Two options:
- Set the window to auto size to it's content using the Window property: SizeToContent
- Use the TabControl event: SelectionChanged
Thomas
2010-02-06 02:10:24