Click Event

2 posts, 0 answers
  1. LG
    LG avatar
    12 posts
    Member since:
    Oct 2008

    Posted 11 Aug 2010 Link to this post

    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
  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 12 Aug 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top