This question is locked. New answers and comments are not allowed.
How do you raise the MouseLeftButtonDownEvent on a RadRibbonTab?
I have tried the following:
RadRibbonTab tmp;
tmp.RaiseEvent(new RadRoutedEventArgs(RadRibbonTab.MouseLeftButtonDownEvent));
however
RadRibbonTab.MouseLeftButtonDownEvent is of type System.Windows.RoutedEvent and RadRoutedEventArgs wants a Telerik.Windows.RoutedEvent.
I have also tried:
EventInfo eventInfo = typeof(RadRibbonTab).GetEvent("MouseLeftButtonDown");
var raiseMethod = eventInfo.GetRaiseMethod()
raiseMethod.Invoke(tmp, null);
however
raiseMethod is always null.
Is there some other way of clicking the tab programmatically? Note, I do NOT want to use SelectedIndex or SelectedItem. I want to simulate a mouse click.
Thanks
I have tried the following:
RadRibbonTab tmp;
tmp.RaiseEvent(new RadRoutedEventArgs(RadRibbonTab.MouseLeftButtonDownEvent));
however
RadRibbonTab.MouseLeftButtonDownEvent is of type System.Windows.RoutedEvent and RadRoutedEventArgs wants a Telerik.Windows.RoutedEvent.
I have also tried:
EventInfo eventInfo = typeof(RadRibbonTab).GetEvent("MouseLeftButtonDown");
var raiseMethod = eventInfo.GetRaiseMethod()
raiseMethod.Invoke(tmp, null);
however
raiseMethod is always null.
Is there some other way of clicking the tab programmatically? Note, I do NOT want to use SelectedIndex or SelectedItem. I want to simulate a mouse click.
Thanks