Category / Section
How to disable reorder tabs for TabcontrolExt
1 min read
Reorder the TabItems in HeaderPanel can be disable by setting AllowDragDrop of TabControlExt as False.
The same has been explained in the following code snippet:
XAML:
//Code Explains How to disable dragdrop for TabcontrolExt <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:syncfusion="http://schemas.syncfusion.com/wpf" x:Class="DragDrop.MainWindow" Title="MainWindow" Height="350" Width="525"> <Grid> <syncfusion:TabControlExt Name="tabcontrol" AllowDragDrop="False"> <syncfusion:TabItemExt Header="TabItem" MinWidth="150" MinHeight="20"/> <syncfusion:TabItemExt Header="TabItem2" MinWidth="150" MinHeight="20"/> <syncfusion:TabItemExt Header="TabItem3" MinWidth="150" MinHeight="20"/> </syncfusion:TabControlExt> </Grid> </Window>
C#:
// Code Explains How to disable dragdrop for TabcontrolExt namespace DragDrop { public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); tabcontrol.AllowDragDrop = false; } } }