This is a migrated thread and some comments may be shown as answers.

Docking Panel - when setting IsActive is true, the sliding effect is showing when the application window is minimized

2 Answers 171 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Abhinav
Top achievements
Rank 1
Abhinav asked on 01 Feb 2017, 05:58 PM

Hi Telerik,

 

When setting a Dock Panel's IsActive property to true, the Panel will "slide" out over top of all other active windows, even if the application is not "Active" or has been minimized. The effect is that the sliding effect will show even when the application is minimized and other applications are active (i.e. Microsoft Word, etc.) and it can become disruptive. Could you please let us know if this is the intended behavior? We'd like the behavior of when setting IsActive to true, to not show the sliding effect when the application is not active or has been minimized.

Is there a property we can set so that the Panel does not appear as "top-most" when setting the Panel's IsActive property to true?

Please advise.

 

Kind regards.

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 06 Feb 2017, 10:49 AM
Hi Abhinav,

The observed by you behavior is caused by the built-in FlyoutBehavior of RadDocking and it is an expected one with its current implementation. However, you could easily override that default FlyoutBehavior and prevent the Pane from opening when the Window is minimized and it is not active.

You could create a class the inherits the IFlyoutBehavior interface. Inside the OnPaneActivated method you could check if the Window inside which the Pane is placed is currently not minimized and is active and only then to open the Pane.

Please, check the attached sample that demonstrates that approach - you might need to improve the provided implementation in order to make it work for all your scenarios.

Hope the provided information will be helpful for you.

Regards,
Nasko
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Abhinav
Top achievements
Rank 1
answered on 06 Feb 2017, 06:14 PM

Hi Nasko,

Thank you very much - this is very helpful and works perfectly.

 

Kind regards

Tags
Docking
Asked by
Abhinav
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Abhinav
Top achievements
Rank 1
Share this question
or