IModelApplicationWeb.CurrentUserDisplayMode Property
Specifies how the current user information is displayed in the top right corner of the application page in the new web UI.
Namespace: DevExpress.ExpressApp.Web.SystemModule
Assembly: DevExpress.ExpressApp.Web.v24.2.dll
NuGet Package: DevExpress.ExpressApp.Web
#Declaration
[DefaultValue(CurrentUserDisplayMode.Default)]
CurrentUserDisplayMode CurrentUserDisplayMode { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Current |
Default | A Current |
Available values:
Name | Description | Image |
---|---|---|
Default | A user class’ icon specified by the Image |
|
Caption | A user class’ icon specified by the Image |
|
Caption |
A user image specified by the Current |
|
Image | An image specified by the Current |
#Remarks
You can change the CurrentUserDisplayMode value in the Model Editor invoked for the ASP.NET Web Forms-specific project. Focus the root node and specify the required value in the property grid to the right.
The table below demonstrates the effect of different CurrentUserDisplayMode values.
Value | Description | Screenshot |
---|---|---|
Caption |
A user image specified by the Current |
|
Caption | A user class’ icon specified by the Image |
|
Default | A user class’ icon specified by the Image |
|
Image | An image specified by the Current |
To provide an individual image (photo or avatar icon) for each user, set CurrentUserDisplayMode to CaptionAndImage or Image and apply the CurrentUserDisplayImageAttribute to the user business class.