RadWindows and navigation framework

5 posts, 1 answers
  1. Jorn
    Jorn avatar
    222 posts
    Member since:
    Jun 2009

    Posted 11 Nov 2009 Link to this post

    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. 

     

  2. Jorn
    Jorn avatar
    222 posts
    Member since:
    Jun 2009

    Posted 14 Nov 2009 Link to this post

    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).
  3. DevCraft banner
  4. Answer
    Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 16 Nov 2009 Link to this post

    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.
  5. Yogish
    Yogish avatar
    12 posts
    Member since:
    Dec 2010

    Posted 07 Dec 2010 Link to this post

    I am also faceing the same problem your online example page not open can you give some useful link to me
  6. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 09 Dec 2010 Link to this post

    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
Back to Top
DevCraft banner