Intersoft ClientUI Documentation
IsAuthenticating Property (UXFrame)
Example 



Gets or sets a value indicating whether the UXFrame is currently performing authentication process. When the property is set to true, the UXFrame will delay the navigation process until the authentication process is done.
Syntax
Public Property IsAuthenticating As Boolean
Dim instance As UXFrame
Dim value As Boolean
 
instance.IsAuthenticating = value
 
value = instance.IsAuthenticating
public bool IsAuthenticating {get; set;}
public:
property bool IsAuthenticating {
   bool get();
   void set (    bool value);
}
Remarks

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.

Example
The following example shows how to implement IsAuthenticating property using MVVM pattern to track and control the authentication progress.
<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>
Requirements

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

See Also

Reference

UXFrame Class
UXFrame Members
Navigation Overview

Send Feedback