开发者

mouse click event on Tab header in Tabcontrol

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜