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

Custom RadTabbedWindow creates base RadTabbedWindow when "drag-created"

3 Answers 43 Views
TabbedWindow
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 26 Mar 2020, 10:24 AM

We've got a custom control which inherits RadTabbedWindow. I.e:

 

<telerik:RadTabbedWindow x:Class="MyCustomTabbedWindow">...</telerik:RadTabbedWindow>

 

MyCustomTabbedWindow binds to a viewmodel and so on, and works fine. However, when it creates a new window by dragging a tab out of it, the new window (event.NewWindow) is of the base type (RadTabbedWindow), not MyCustomTabbedWindow...

 

Is it possible to fix this somehow so that the newly created window is of the correct type? At the moment we've done a workaround which creates the new window in the event handler and cancels the original event, but that feels... like a workaround :)

 

Any suggestions on how to go about doing this?

3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 30 Mar 2020, 06:49 PM

Hello Mattias,

Currently, RadTabbedWindow is creating another RadTabbedWindow instance when you drag out a tab and I am afraid that there is on API that allows you to change this. To achieve your requirement, you can use the TabbedWindowCreating event as you are already doing. 

If you have other questions, please let me know.

Regards,
Martin Ivanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Martin Ivanov
Telerik team
answered on 02 Apr 2020, 09:23 AM

Hello Mattias,

We reviewed this again and we've logged a feature request to allow providing a custom window instance when the drag/drop is executed. You can find this in our feedback portal. Also we've updated your Telerik points.

Regards,
Martin Ivanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Mattias
Top achievements
Rank 1
answered on 07 Apr 2020, 06:43 AM
Thanks, looking forward to it!

Best regards,
Mattias
Tags
TabbedWindow
Asked by
Mattias
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Mattias
Top achievements
Rank 1
Share this question
or