Hi,
I can't find the best way to disable the scroll wheel tab changing feature of the Ribbon. I tried:
mainRibbon.PreviewMouseWheel += new MouseWheelEventHandler(mainRibbon_PreviewMouseWheel);
}
But alas, this did not work. Nor could I find a XamRibbon.IsAllowedToUseMouseScrollWheelToSwitchTabs property
What is the best way to do this?
Thanks
KZ
Worked like a charm.
this.PreviewMouseWheel += new MouseWheelEventHandler(AgentDesktop_PreviewMouseWheel);
...
e.Handled = mainRibbon.IsMouseOver;
The ribbon cannot rely upon its MouseWheel event since it needs to respond to the mousewheel even when another control has focus so its dealing with the MouseWheel event of the root visual - e.g. the Window. You could handle the PreviewMouseWheel of the Window and if the IsMouseOver of the XamRibbon is true, mark the event as handled. You may also want to submit a suggestion for disabling this feature - http://devcenter.infragistics.com/Protected/RequestFeature.aspx