tags:

views:

340

answers:

1

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:

  1. Set the window to auto size to it's content using the Window property: SizeToContent
  2. Use the TabControl event: SelectionChanged
Thomas