This is a migrated thread and some comments may be shown as answers.

Click Event

1 Answer 199 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
LG
Top achievements
Rank 2
LG asked on 11 Aug 2010, 11:01 PM
What is the equivalent of the click event in WPF? Similar to what we have for the TabControl version in WinForms

http://www.telerik.com/help/winforms/tab_eventstabselected.html

I have several embedded TabControls / TabItems and need to know when the user clicks on the tab. Not when it got the focus or the selection changed, just the click event.

If such option is not available, is there a way to convert the TabItem header to an hyperlink?

Thanks

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 12 Aug 2010, 08:22 AM
Hi RJ,

You can always place a HyperlinkButton in the TabItem's header.

There is no Click event per say but you can use the MouseLeftButtonUp/Down events, to register you need to use the AddHandler method:

tab.AddHandler(Control.MouseLeftButtonUpEvent, new MouseButtonEventHandler(OnMouseUp), true);

this overload will allow you to handle the handled routed events as well.

Sincerely yours,
Miroslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TabControl
Asked by
LG
Top achievements
Rank 2
Answers by
Miroslav
Telerik team
Share this question
or