Intersoft.Client.UI.Navigation Namespace > UXFrame Class : IsAuthenticating Property |
With the nature of Silverlight and WPF as a client-side platform, the user authentication is typically performed through an asynchronous callback to the server-side through web services such WCF RIA Services. In most cases, you want to prevent users to interact with your application while authentication is in progress, such as when login or logout operation is being performed.
UXFrame streamlines the authentication process by providing IsAuthenticating property, which makes it easy for you to track when authentication process is being executed. You can use MVVM pattern to manage this property in your ViewModel.
When the IsAuthenticating property is set to true, UXFrame automatically blocks the page from user interactions thus preventing users to work with the page while the authentication operation is in progress. More importantly, the UXFrame will hold the current navigation request until the authentication process is completed, which is indicated by the IsAuthenticating property set to false. This behavior is designed to ensure consistent user experience in real-world applications that leverage authentication over the web service.
For more information on how to customize error style, see Advanced Features in ClientUI Navigation Framework.
<Intersoft:UXFrame x:Name="ContentFrame" User="{Binding User, Source={StaticResource Shell}}" IsAuthenticating="{Binding IsAuthenticating, Source={StaticResource Shell}}" RedirectUri="/Login"> <Intersoft:UXFrame.UriMapper> ... </Intersoft:UXFrame.UriMapper> </Intersoft:UXFrame>
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2