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

Radwindow event not firing from a Docking

1 Answer 60 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Abner
Top achievements
Rank 1
Abner asked on 01 Dec 2014, 12:11 PM
Hi,

I have the below situation:

One Radwindow that constains inside it a raddocking with two RadPaneGroup inside each one another radwindow.

Example: 
<telerik:RadWindow>
    <telerik:RadDocking>
        <telerik:RadSplitContainer>
              <telerik:RadPaneGroup Name="PaneGroup1">
                    <telerik:RadPane>
                          // I have here a usercontrol that is a RadWindow, which loads when i open the main usercontrol
                          <telerik:RadWindow Name="Chart">
                          </telerik:RadWindow>
                    </telerik:RadPane>
               </telerik:RadPaneGroup>
               <telerik:RadPaneGroup Name="PaneGroup2">
                    <telerik:RadPane>
                          // This radwindow is another usercontrol added programatically as RadPaneAppHost.Content = UserControlAppHost with an closed event being subscribed UserControlAppHost.Closed += new EventHandler<WindowClosedEventArgs>(AppHost_Closed);
                          <telerik:RadWindow Name="UserControlAppHost">
                          </telerik:RadWindow>
                    </telerik:RadPane>
               </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
    </telerik:RadDocking>
 </telerik:RadWindow>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            My problem is the closed event is not being fired when i click in a custom close button, if i dont added as Content, just open the radwindow separetelly the same event is fired in my main usercontrol, but since i added as content it doesnt fire the event, i tried to added inside a stackpanel then added the stackpanel as content the same happens, the event is never fired in my main usercontrol.                                                                                                                                                                                                                                                                                                                                                                                                        Could you help me with that isssue?                                                                                                                                                                                                       Thanks













1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 02 Dec 2014, 01:48 PM
Hello Abner,

The described behavior of RadWindow could be an expected one as defining RadWindow directly in XAML is not supported and not recommended approach. Please, check the following article from our help documentation that demonstrates how to use RadWindow as UserControl and how to initialize it:
http://www.telerik.com/help/wpf/radwindow-how-to-use-radwindow-as-user-control.html

Also, could you please provide us more detailed information about your scenario, so we could suggest you another approach to achieve the desired.

We are looking forward to hearing from you.

Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Docking
Asked by
Abner
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or