.NET6 How to fix RibbonTabItems?

Posted by: info on 30 January 2022, 4:45 pm EST

  • Posted 30 January 2022, 4:45 pm EST


    C1.WPF.Ribbon.Ja 6.0.20213.162

    How to fix(freeze) the RibbonTabItems?

    Is there any property?
    The event of QueryContinueDrag dose not fire, so I can not cancel.

  • Marked as Answer

    Replied 30 January 2022, 7:19 pm EST


    Thank you for providing the snapshot.

    You can prevent RibbonTabItem drag by handling PreviewMouseMove event as : (see code snippet)

    private void Preview_MouseMove(object sender, MouseEventArgs e)
    if(e.Source is RibbonTabItem)
    if(e.LeftButton == MouseButtonState.Pressed)
    e.Handled = true;

    Please refer the attached sample for the same : RibbonExplorer.zip

    Best Regards,
  • Replied 30 January 2022, 9:04 pm EST

    Thank you.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels