RibbonTab Click event?

Feb 22, 2014 at 8:42 PM
Love the Ribbon kudos to the developers.

I have a question I can find the answer on.

Is there a Click event in/on the ribbon tab?
So when I click on a tab I want to change a TAB on the default VB Tab Control with the same name.

If this is possible how?
Feb 23, 2014 at 9:57 AM
Indirectly. The ribbon has an event ActiveTabChanged. That should fit your needs.
Feb 24, 2014 at 8:40 PM
Thanks,
I have to look how to use this in VB
How i create A event out of this.

Thanks for the answer so far.
Feb 25, 2014 at 7:16 AM
Check out MSDN:
http://msdn.microsoft.com/en-us/library/ms743596%28v=vs.110%29.aspx
Public Partial Class RoutedEventAddRemoveHandler
    Private Sub MakeButton(ByVal sender As Object, ByVal e As RoutedEventArgs)
        Dim b2 As Button = New Button()
        b2.Content = "New Button" 
        AddHandler b2.Click, AddressOf Onb2Click
        root.Children.Insert(root.Children.Count, b2)
        DockPanel.SetDock(b2, Dock.Top)
        text1.Text = "Now click the second button..."
        b1.IsEnabled = False 
    End Sub 
    Private Sub Onb2Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
        text1.Text = "New Button (b2) Was Clicked!!" 
    End Sub
Feb 25, 2014 at 8:42 PM
Thanks I have to studdy on that, it's the first time I have to make a Event Handler Using Code
but i m learning :-)
Feb 28, 2014 at 8:04 PM
Of course this can be done via Designer as well. Just select the control of interest and choose the "Events" button in the property grid. There are all events listed. If you double click one, you should get everything for free!