开发者

mouse click event on Tab header in Tabcontrol

开发者 https://www.devze.com 2022-12-19 01:06 出处:网络
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 p

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:

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

精彩评论

暂无评论...
验证码 换一张
取 消