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

Navigation Authorization/Authentication

1 Answer 76 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
Martyn
Top achievements
Rank 1
Martyn asked on 17 Jan 2012, 04:16 PM
Hello,

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,

Martyn.

1 Answer, 1 is accepted

Sort by
0
Pana
Telerik team
answered on 20 Jan 2012, 10:24 AM
Hi,

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.

Regards,
Pana
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
TransitionControl
Asked by
Martyn
Top achievements
Rank 1
Answers by
Pana
Telerik team
Share this question
or