New default behavior of floating windows (Docking) in R1 2024 against R3 2023

3 Answers 48 Views
Docking
Jakub
Top achievements
Rank 1
Iron
Jakub asked on 12 Feb 2024, 02:58 PM

Hello,

we found that in version R1 2024 of Telerik UI for WPF the opened dockable floating windows are set by default to be topmost also over other application windows.

This behaviour is easily reproducible in the demo application.  It is enough to set solution explorer as a floating dockable window in the First Look example of the Docking and open e.g. internet explorer over the Telerik demo application. In version R3 2023, the solution explorer window was not visible anymore, in R1 2024 is the window still visible.

Is it some new feature or bug?

Thank you.

Best regards,

Jakub

3 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 13 Feb 2024, 12:57 PM

Hello Jakub,

This change in the window behavior is related to a new drag/drop functionality in RadDocking. You can return the old behavior by handling the ToolWindowCreated event of RadDocking:

private void RadDocking_ToolWindowCreated(object sender, Telerik.Windows.Controls.Docking.ElementCreatedEventArgs e)
{
    var window = (ToolWindow)e.CreatedElement;
    window.IsTopmost = false;
}

Or by creating a custom GeneratedItemsFactory and overriding its CreateToolWindow method.

public class CustomGeneratedItemsFactory : DefaultGeneratedItemsFactory
{
    public override ToolWindow CreateToolWindow()
    {
        var window = base.CreateToolWindow();
        window.Dispatcher.BeginInvoke(new Action(() =>
        {
            window.IsTopmost = false;
        }));
        return window;
    }
}


  <telerik:RadDocking.GeneratedItemsFactory>
      <local:CustomGeneratedItemsFactory />
  </telerik:RadDocking.GeneratedItemsFactory>

To apply this globally, you can use an implicit style that targets RadDocking.

 <Window.Resources>
     <Style TargetType="telerik:RadDocking">
         <Setter Property="GeneratedItemsFactory">
             <Setter.Value>
                 <local:CustomGeneratedItemsFactory />
             </Setter.Value>
         </Setter>
     </Style>
 </Window.Resources>

I hope this helps.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Jakub
Top achievements
Rank 1
Iron
answered on 13 Feb 2024, 01:25 PM

Hello Martin,

Thank you very much for the explanation.

Best regards,

Jakub

0
Martin Ivanov
Telerik team
answered on 15 Feb 2024, 08:58 AM

Hello Jakub,

I am following up my last reply to let you know that we have logged an item in our feedback portal to return the original behavior. You can also find your Telerik points updated.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Jakub
Top achievements
Rank 1
Iron
commented on 15 Feb 2024, 11:57 AM

Hello Martin,

thank you very much. It is always better that the newly installed update with new features will not affect the behaviour of the application, but I understand that in some cases is necessary to do it.

Best regards,

Jakub

Tags
Docking
Asked by
Jakub
Top achievements
Rank 1
Iron
Answers by
Martin Ivanov
Telerik team
Jakub
Top achievements
Rank 1
Iron
Share this question
or