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

Mark Parent window from different app domain

1 Answer 478 Views
Window
This is a migrated thread and some comments may be shown as answers.
Usman
Top achievements
Rank 1
Usman asked on 09 Apr 2020, 04:50 PM

Hi Team,

We have a parent window (RadRibbonWindow) which is being executed in a different app domain and then multiple child app domains opens a dialogs ( RadWindows).

Problem:

We can not set parent window from child windows as they are on different app domains. In MS controls we have functionality of WindowInteropHelper  that can be used to define an owner but in case of RadWindow we have a content control.

I have tried to set the content from respective app domin like (RadButton) to be parent which is also from related app domin but displayed in the main application but things are not working.

Any Ideas how to manage it.

Regards

1 Answer, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 14 Apr 2020, 10:47 AM

Hello Usman,

The RadWindow is hosted in a transparent WPF Window. You can check out the following thread, where the scenario of accessing it is discussed. To summarize, in the HostCreated event of the RadWindow you can get its host WPF Window and set its handle. 

Alternatively, you can also inherit the RadWindow and override its GetWindowOwnerHandle virtual method. In that method you can return the owner handle that needs to be used. 

I hope you find this information helpful. 

Regards,
Vladimir Stoyanov
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.
Tags
Window
Asked by
Usman
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or