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

I need advice on window ZIndex workaround

2 Answers 80 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jan
Top achievements
Rank 1
Jan asked on 12 Apr 2011, 11:10 AM
Hello, 
I found out on some forum threads that you had to work around the silverlight limitations when it comes to windows and Zindexes.
As a consequence, I have a strange behavior with BrongToFront() and Loaded() methods in some cases, and I would like to seek your advice.

My scenario is this:

-Parent window (P0) opens the child window (C0).
-C0 window opens yet another child window (C01).
-C0 window closes.

Now I have just P0 and C01 opened, but would like to have C01 in front.
What happens in reality is that sometimes P0 is in front and sometimes C01 is in front.. I have noticed that I cannot predict which Loaded() event fires first.
I taught of some communication between these windows, but I would like to avoid this if possible and go for the generic solution.
Can you give me any advice on how to make sure that a child window is in front?


Thanks :)

2 Answers, 1 is accepted

Sort by
0
Jan
Top achievements
Rank 1
answered on 13 Apr 2011, 11:13 AM
Any comment is more than welcome :)
0
George
Telerik team
answered on 15 Apr 2011, 03:26 PM
Hi,

 
Thank you for contacting us.

I would suggest you setting the RadWindow.Owner property to the parent RadWindow. In this case, the child RadWindow knows which RadWindow is his parent and it won't go behind it. You could refer to our online documentation - http://www.telerik.com/help/silverlight/radwindow-features-positioning.html.

Anyway, if you need to get all opened RadWindows and manage them manually, the RadWindowManager could be very helpful. 

I hope this helps.

Kind regards,
George
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Window
Asked by
Jan
Top achievements
Rank 1
Answers by
Jan
Top achievements
Rank 1
George
Telerik team
Share this question
or