This is a migrated thread and some comments may be shown as answers.
Transparent and Non Transparent ToolWindow
1 Answer 9 Views
This is a migrated thread and some comments may be shown as answers.
Nitzan
Top achievements
Rank 1
Nitzan asked on 09 Feb 2021, 10:51 AM

Hi, I need to create the both types of windows Transparent and non Transparent. The RadPane pane.DataContext  contains appropriate information about the type of window to be created for this RadPane.

 

 

I see in https://www.telerik.com/forums/hosting-a-win32-window-in-a-wpf-floating-tear-off-tab that it was impossible in 2012, but may be do you have any updates for this issue?

How I can implement this?
Thanks

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 11 Feb 2021, 01:12 PM

Hi Nitzan,

You can now use the ToolWindowCreated event of RadDocking where you can get information about the Pane and the ToolWindow as shown below:

private void Docking_ToolWindowCreated(object sender, ElementCreatedEventArgs e)
{
    var pane = e.SourceElement as RadPane;
    var toolWindow = e.CreatedElement as ToolWindow;
}

The event is raised before the window is shown, so you should be able to conditionally set AllowTransparency as required.

Hope this helps.

Regards,
Kalin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Asked by
Nitzan
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or