Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
345
Disable Mouse Wheel Scroll Tab Selection
posted

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);

void mainRibbon_PreviewMouseWheel(object sender, MouseWheelEventArgs e)        {            try            {                e.Handled = true;            }            catch (Exception ex)            {                Logger.Write(new LogEntry() { Message = ex.ToString(), Severity = System.Diagnostics.TraceEventType.Error });            }

        }

But alas, this did not work.  Nor could I find a XamRibbon.IsAllowedToUseMouseScrollWheelToSwitchTabs property Smile

What is the best way to do this?

 Thanks

KZ

Parents Reply Children
No Data