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.

Visibility of Floating Child Windows of a deselected Tab

Thread ID:

Created:

Updated:

Platform:

Replies:

127386 Nov 11,2016 08:21 AM Nov 23,2016 01:07 AM WPF 5
loading
Tags: DockingManager
Erik Brunki
Asked On November 11, 2016 08:21 AM

Hello,

I have a question about the functionality of Syncfusion.
In our Project we have 3 UserControls docked to the MainWindow as tabs, lets call them Pages. (each Page has an own Dockingmanager)
Inside these UserControls are "Sub"-UserControls, which you can make floating.

I am aware that if you change a SubUserControl to be Floating, Syncfusion creates a FloatingForm to put the UserControl inside, so that it can be displayed outside the MainWindow.

If I change now the Tab to a different Page, the floating UserControl from the first Page is not shown anymore.
This makes sense, as this is the child of the DockingManager of the first Page and so it is not shown, when it is not demanded.

But it is not userfriendly in our case.
Our Users expect, that if they drag a SubUserControl out (for example a mathematical Plot or a Table) to a different Monitor, it won't vanish when they change the tabs of the MainWindow.

So I wanted to ask:
Is there an elegant way to enforce visibility on FloatingForms created by the DockingManager, even when the UserControl (Page) where the DockingManager resides is not the selected Tab?

Or can I somehow get the handle of the newly created FloatingForm and change its VisibilityState(?) to true?

Regards
Erik

Durga Rajan [Syncfusion]
Replied On November 14, 2016 07:48 AM

Hi Erik,

Thank you for contacting Syncfusion Support.

We have used a TabControl inside the DockingManager for Tabbed and Document Windows. While we change the selection in TabControl, TabItem content will be Collapsed other than selected tab. So FloatWindows will be visible only when the Parent TabItem is Selected.
​​​
Regards,
Durga S. 


Erik Brunki
Replied On November 15, 2016 02:00 AM

Hello Durga,

thank you for your fast response.
So if I want to have the floating Windows stay open, I have to reconsider my design.
Okay, this was important to know so I don't follow the wrong track.

Regards
Erik


Durga Rajan [Syncfusion]
Replied On November 16, 2016 07:56 AM

Hi Erik,

We have prepared a sample that tries to meet your requirement. In this sample, UserControls are placed in TabControlExt, so NativeFloatWindow will be Collapsed while selection change. We can overcome this behavior by changing the Visibility of NativeFloatWindow. We have changed the IsOpen property of NativeFloatWindow as True while updating layout of TabControlExt. You can download the sample from following location,

Sample: Sample_DockingManager

Regards,
Durga S.

Erik Brunki
Replied On November 22, 2016 06:52 AM

Hello Durga,

thank you,  with a little modification to our code it worked!

Regards
Erik

Durga Rajan [Syncfusion]
Replied On November 23, 2016 01:07 AM

Hi Erik,

We are glad to know that your issue has been solved. Please let us know if you need any further assistance.

Regards,
Durga S.

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.

;