Navigation Authorization/Authentication

2 posts, 0 answers
  1. Martyn
    Martyn avatar
    18 posts
    Member since:
    Mar 2011

    Posted 17 Jan 2012 Link to this post


    In a previous version of the Silverlight application we are developing, we were using a navigation frame to provide page navigation. In order to prevent users who were not logged in from accessing the application, on the navigation frame we set the attribute: 
    <nav:Frame Source="/Home" s:Authorization.NavigationMode="Redirect" />
    Silverlight Authorization Sample for WCF RIA Services

    However,  we are now in the process of re-developing the application to take advantage of MEF and MVVM. As part of this, we have replaced the navigation frame with a RadTransitionControl that we will use to display the different components of the application

    How would I go about preventing the RadTransitionControl from displaying Content until the user has logged in

    Thanks very much,

  2. Pana
    Pana avatar
    748 posts

    Posted 20 Jan 2012 Link to this post


    Do you need to replace the Frame with ContentControl in order to use the new application logic? If you are using the TransitionControl just to enable animations then I could point you to some examples where the TransitionControl is placed in the control template of the Frame. That way you could keep all the navigation logic within the frame and benefit the animations from the TransitionControl.

    If that is not the case then I guess you could simply bind the Opacity or Visibility of the TransitionControl to IsAutorized boolean property of your view model.

    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. DevCraft banner
Back to Top