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

Determine which RadPane is being closed

3 Answers 83 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Sigd
Top achievements
Rank 1
Sigd asked on 23 Nov 2010, 04:10 PM
I want to give all my user created RadPanes a unique name on creation, so in WindowClose I can detect which of my Panes are being closed.    In the WindowClose event, you can currently view the Panes included in the close in sender ... 

((Telerik.Windows.Controls.

 

RadDocking)(sender)).Panes).

I was hoping to use the SerialisationTag for this purpose.  So my question is, where in the RadPane returned in the WindowClose event can I find the SerialisationTag?

If it is not available, can you suggest another property (other than Title) that I can set a unique name to the Pane and retireve it in the WindowClose event?

Many thanks,
Sigd

 

3 Answers, 1 is accepted

Sort by
0
Sigd
Top achievements
Rank 1
answered on 23 Nov 2010, 04:35 PM
In fact, rewind that.  The RadDocking WindowClose is not the correct event !  

Which event can I hook into to correctly determine when a RadPane is being closed?  The RadPane WindowClose event seems to fire when it moves from floating to docked, as well as when it's actually closed !?!    Is there some way to determine which it is or is there another Close event which only fires once when the RadPane is closed? 
0
Sigd
Top achievements
Rank 1
answered on 23 Nov 2010, 05:04 PM
OK I see the correct event ... Close on the RadDcoking control.

My original question remains, how do I identify the RadPane being closed from the sender Panes collection in sender, excluding the Title property..
0
George
Telerik team
answered on 26 Nov 2010, 03:00 PM
Hello,

I would suggest you to use the Panes property of the StateChangeEventArgs object. Panes property is type of IEmenurable<RadPane> and returns the closed RadPanes. 

I hope this helps.

Best wishes,
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Docking
Asked by
Sigd
Top achievements
Rank 1
Answers by
Sigd
Top achievements
Rank 1
George
Telerik team
Share this question
or