Thank you for your question.
To prevent a bar from being dragged, specify its DrawDragBorder property with the "False" value:
Please feel free to contact us if you need any additional assistance in this regard. We will be happy to help you.[C#]
this.barLocal.OptionsBar.DrawDragBorder = false;