How to prevent autoselect of tabbed docking windows in a drag'n drop operation?

Docking/MDI for WPF Forum

Posted 3 years ago by Oliver Rutsch
Version: 14.1.0611
Avatar

Hi,

 

a drag'n drop operation activates (and brings to front) every window in a tabbed docking window which gots the mouse over event. I can imagine, that this behaviour was introduced to reach the tabbed window.

But a lot of our customers find this really annoying.

So I'd like to ask, if it is possible to prevent this activation of a tabbed window while dragging? For us, it would be OK, if we could drop the data only on the tab header, if this window is currently hidden.

 

Thanks and bye,

Comments (4)

Posted 3 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Oliver,

This was posted in the WinForms forum but I believe your company has the WPF version.  Did you intend it to be for the WPF version?


Actipro Software Support

Posted 3 years ago by Oliver Rutsch
Avatar

Yes, you're certainly right. Can you move this thread to the WPF forum, please?

 

Thanks and bye,

Answer - Posted 3 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Oliver,

We actually added a new property to AdvancedTabControl that is ready to go for the next maintenance release (build 633), which effectively does what you want. 

You could use this code to disable drag selection once you have the new build:

<Style TargetType="docking:ToolWindowContainer">
	<Setter Property="TabControlStyle">
		<Setter.Value>
			<Style TargetType="docking:AdvancedTabControl">
				<Setter Property="CanTabsSelectOnDragOver" Value="False" />
			</Style>
		</Setter.Value>
	</Setter>
</Style>
			
<Style TargetType="docking:TabbedMdiHost">
	<Setter Property="TabControlStyle">
		<Setter.Value>
			<Style TargetType="docking:AdvancedTabControl">
				<Setter Property="CanTabsSelectOnDragOver" Value="False" />
			</Style>
		</Setter.Value>
	</Setter>
</Style>


Actipro Software Support

Posted 3 years ago by Oliver Rutsch
Avatar

Hi,

that are great news! I'm looking forward this release and I'll give it a try.

Thanks for your fast and helpful answer!

 

Bye,

Oliver

The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.