Posted 27 April 2020, 9:39 am EST
Hi,
When you drag a C1DockTabControl its new instance is created and that instance didn’t have your handler registered to its MouseDoubleClick event.
Therefore you can alternatively use EventSetter inside xaml to register your event handler as follows:
<Window.Resources>
<Style x:Key="DockTabControlDoubleClick" TargetType="c1:C1DockTabControl">
<EventSetter Event="MouseDoubleClick" Handler="dockTabControl1_MouseDoubleClick"></EventSetter>
</Style>
</Window.Resources>
<c1:C1DockTabControl x:Name="dockTabControl1" Style="{StaticResource DockTabControlDoubleClick}">
<c1:C1DockTabItem Header="Tab 1">
<TextBlock FontSize="30" Margin="10" Text="70% Width"></TextBlock>
</c1:C1DockTabItem>
</c1:C1DockTabControl>
I hope it helped.
Regards,
Basant