We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Some questions about TabControlExt

Thread ID:





96358 Sep 7,2010 03:59 PM UTC Sep 21,2010 01:30 PM UTC WPF 1
Tags: Tools
Asked On September 7, 2010 03:59 PM UTC

Hello, I have some questions about TabControlExt :

- If I have two TabControlExt with drag&drop enabled, the user can drag&drop from one TabControlExt to the other. Is there a simple way to allow only reordering of Tabs within one TabControlExt ?

- TabControlExt contains an innerPanel named PART_ContentPanelInnerBorder. Is there a way to remove/hide it without replacing the whole control template?

- The drag&drop works by showing a marker, but the marker position is not stable: If I have tabs 1, 2 and 3, when moving tab 1 between 2 and 3, the maker position is different if I'm on the second half of tab 2 or on the first half of tab 3. Is there a way to correct that (maybe by having some constraints on the TabItem template?)

- I could not guess what was the effect of HotTrackingEnabled, even with tests, and, as is often the case, the documentation was no help to me, just stating that HotTrackingEnabled allowed me to know if HotTrackingEnabled was true... What is the purpose of this property?

Thank you!

David C [Syncfusion]
Replied On September 21, 2010 01:30 PM UTC

Hi Loic,

We have addressed the first 3 questions in the DirectTrac incident 71394 as below.

Hi Loic,

1. Is there a simple way to allow only reordering of Tabs within a single TabControlExt ?.
Yes. We can allow the reordering of tabs only inside the single TabControlExt. We have done this requirement in the attached sample below. We used the DragEnter method in each of the TabControlExt to achieve this scenario. Now it will allow you to drop only within single TabControlExt. It is clearly explained in the sample.

2. The marker position is not stable:?
It is the default behavior in TabControlExt. Marker position depends upon the cursor placement in Drop target. We have attached the screen shot below to illustrate this.

3. I could not find the way to customize the context menu on a TabItem?.
We can customize the context menu on a tabitem by the property called ContextMenuItems. If we add the MenuItems to the ContextMenuItems collection, it will automatically add to the ContextMenu of TabItem. We explained with detail in the attached sample.

Sample :-


Screen shot:-


Please let us know if you have any queries.

David C

[Updated on 9/14/2010 9:28 AM by: loic.joly@reportive.com]

Hello, thank you for your assistance. Here are my remarks:

1- Thank you, it seems to do the job.

2- I'm not sure I expressed myself clearly enough about the stability problem. In an attempt to clarify, I have attached three pictures displaying what happens while I move the mouse over the tabs during a drag&drop (the screenshot were made with the sample in the dashboard):
- On picture 1, the marker is at some position
- On picture 2, when the mouse is exactly between tabs, the marker vanishes. I expected it to be still present, and at the same position.
- On picture 3, the marker is at a position slightly different from picture 1. I expected it to be at the same position.

In the ideal world, the 3 pictures should be exactly the same (except for the red comments, of course... ;)).

3- In your example, the menu items are added, but the default menu items are still present. I don't want to see any "Close" menu item in my menu (since in our application, the user will not be able to close the tabs), but I still need a context menu.


[Updated on 9/15/2010 3:40 AM by: David C ][Updated Type : Provide Defect Information ][Promised Date:9/20/2010 3:40 AM]-5days

Hi Loic,

Question 2 :-

After we have analyzed your screen shot we have found that issue exist with DragMarkerStyle when we have Default style in TabControlExt. We have logged an issue report for this issue and we would be updating you the fix within 3 business days.

Question 3 :-

We have an issue with the TabItem's context menu while we are taking the default context menu items into an account. As it always return null, we can't get the context menu items to disable this. We have logged an issue report for this issue and we would be updating you the fix within 3 business days.

Please let us know if you have any queries.

David C

4. What is the use HotTrackingEnabled property?.
When HotTrackingEnabled is True, it will fetch the system color [ Depend upon the Operating System ] to be applied for the TabItems. This will be applicable only when user move the mouse over the item in Default.

Please let us know if you have any queries.

David C


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon