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

RadWindows and navigation framework

4 Answers 114 Views
Window
This is a migrated thread and some comments may be shown as answers.
Trude
Top achievements
Rank 2
Trude asked on 11 Nov 2009, 11:34 AM
I'm putting together an application with the standard silverlight navigation framework (one main page with a frame and several content pages)

On the content pages I have radwindows which I open in their respective code behinds. The thing that puzzles me is that when I navigate to a new content page the radwindows that belong to the previous content page stays open. I expect that these windows stay in their respective content pages; instead they seem to attach to the main page. Am I missing something obvious here? Here's the code (change_template_window is a user control):
  
        <telerikNavigation:RadWindow x:Name="ct_window" WindowStartupLocation="CenterOwner" Closed="ct_window_Closed" Header="Change template" ResizeMode="NoResize" FontFamily="Arial" FontSize="14" > 
            <local:change_template_window/> 
        </telerikNavigation:RadWindow> 


Other user controls disappears/reappears as expected when I navigate through the application (navigation cache is in use), it's just the radwindows that seem to stay put. 

 

4 Answers, 1 is accepted

Sort by
0
Trude
Top achievements
Rank 2
answered on 14 Nov 2009, 09:46 AM
Anyone? A radwindow that is opened on a content page should stay there, right? Instead they stay open when I navigate to a new content page. (all content pages are openeded through silverlight's navigation framework).
0
Accepted
Hristo Borisov
Telerik team
answered on 16 Nov 2009, 07:52 AM
Hello Jorn,

Your question is undoubtedly reasonable. It is normal to expect RadWindow to disappear whenever you navigate to a new content part of your navigation framework. However, in order to make RadWindow resizable and movable it should not be part of the visual tree of any content page. That is why, whenever you open RadWindow that you have declared in your XAML code it will be detached from the visual tree and will not be used in the layout of your root element. That is why RadWindow does not close whenever you change the content. You have to explicitly close the RadWindow control prior to navigating to another content. If you open our Online Examples, you will notice that we are explicitly closing the instance of RadWindow whenever changing the FirstLook example.

I hope this will resolve your issue, if you have any other problems or concerns, do not hesitate to contact us immediately.

All the best,
Hristo Borisov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Yogish
Top achievements
Rank 1
answered on 07 Dec 2010, 06:05 AM
I am also faceing the same problem your online example page not open can you give some useful link to me
0
Miroslav Nedyalkov
Telerik team
answered on 09 Dec 2010, 01:41 PM
Hi Yogish,

 Here is to correct link - http://demos.telerik.com/silverlight/#Window/FirstLook. Please accept our apologize for the mistake.

All the best,
Miroslav Nedyalkov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Window
Asked by
Trude
Top achievements
Rank 2
Answers by
Trude
Top achievements
Rank 2
Hristo Borisov
Telerik team
Yogish
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Share this question
or