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.
Unfortunately, activation email could not send to your email. Please try again.

Wrong close sequence for docking manager

Thread ID:

Created:

Updated:

Platform:

Replies:

124755 Jun 28,2016 01:32 AM Jun 29,2016 05:34 AM WPF 1
loading
Tags: DockingManager
Nick Tang
Asked On June 28, 2016 01:32 AM

I open 10 documents, document -1, document -2, document -3, document -4, document -5, document -6, document -7, document -8, document -9, document -10, the ten documents are sorted in ascending order,
then I activate some documents one by one, the sequence is document -1, document -3, document -5, document -7, document -9, document -1.
I closed the current document document - 1, document - 9 was the next activated one. I closed document - 9, document - 7 should be the next activated one, actually, document - 2 was the next activated one. The expected result for close sequence should be document -1, document -9, document -7, document -5, document -3, it should be reverse to the activated sequence.

Close Sequence

Actual Result

Expected Result

1

Document - 1

Document - 1

2

Document - 9

Document - 9

3

Document - 2

Document - 7

4

Document - 7

Document - 5

5

Document - 3

Document - 3

6

Document - 5

 

7

Document - 4

 

8

Document - 6

 

9

Document - 8

 

20

Document - 10

 

 



Attachment: WrongCloseSequenceInDockingManager_ea49c4b.zip

Vijayalakshmi Roopkumar [Syncfusion]
Replied On June 29, 2016 05:34 AM

Hi Nick,

Thank you for using Syncfusion Products.

We have checked your sample and found that you have added the children to the DockingManager using the DocumentContainer's Itemscollection. Whenever the items added using the DocumentContainer's Itemscollection, the closing sequence will differ. So in order to get the correct closing sequence of Documents in the DockingManager, add the children to DockingManager using its Children's collection.

The same has been modified in your sample. Please download it from the following link:

Sample:MDI_-Modified

Regards,
Vijayalakshmi V.R.

CONFIRMATION

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.

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.

;