On a little different note. The dragReorder works if the tab items are created in the xaml. I created tab items on the run (binding) and I am not able to reorder by dragging them. Am I missing anything? Below is the snapshot of my code.
<tnav:RadTabControl x:Name="MyTab" AllowDragReorder="True" ItemsSource="{Binding list, Converter={StaticResource tc}}"/>
public class TabConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
List<PortfolioTab> source = value as List<PortfolioTab>;
DataTemplate dt = App.Current.Resources["tabHeader"] as DataTemplate;
if (source != null)
{
List<RadTabItem> result = new List<RadTabItem>();
host = someUserControl;
foreach (PortfolioTab tab in source)
{
result.Add(
new RadTabItem()
{
Tag = tab.TabID,
Header = tab.TabTitle,
Content = host
});
}
return result;
}
return null;
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException();
}
}