.NET6 How to fix RibbonTabItems?

Posted by: info on 31 January 2022, 1:45 am EST

    • Post Options:
    • Link

    Posted 31 January 2022, 1:45 am EST - Updated 4 October 2022, 8:34 am EST

    Hello.

    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.

    Thanks.

  • Posted 31 January 2022, 4:19 am EST

    Hi,

    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,

    Nitin

  • Posted 31 January 2022, 6:04 am 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