Edit

Share via


ProfileCard Class

Definition

Caution

This control will be removed in a future release of the toolkit. Please use the new Graph controls at https://aka.ms/wgt

The Profile Card control is a simple way to display a user in multiple different formats and mixes of name/image/e-mail.

[System.Obsolete("This control will be removed in a future release of the toolkit. Please use the new Graph controls at https://aka.ms/wgt")]
public class ProfileCard : Windows.UI.Xaml.Controls.Control
[<System.Obsolete("This control will be removed in a future release of the toolkit. Please use the new Graph controls at https://aka.ms/wgt")>]
type ProfileCard = class
    inherit Control
Public Class ProfileCard
Inherits Control
Inheritance
Windows.UI.Xaml.Controls.Control
ProfileCard
Attributes

Constructors

ProfileCard()

Initializes a new instance of the ProfileCard class.

Fields

DefaultImageProperty

Identifies the DefaultImage dependency property.

DisplayModeProperty

Identifies the DisplayMode dependency property.

LargeProfileMailDefaultTextProperty

Identifies the LargeProfileMailDefaultText dependency property.

LargeProfileTitleDefaultTextProperty

Identifies the LargeProfileTitleDefaultText dependency property.

NormalMailDefaultTextProperty

Identifies the NormalMailDefaultText dependency property.

UserIdProperty

Identifies the UserId dependency property.

Properties

DefaultImage

Gets or sets the default image when no user is signed in.

DisplayMode

Gets or sets the visual layout of the control. Default is PictureOnly.

LargeProfileMailDefaultText

Gets or sets the default secondary mail text in LargeProfilePhotoLeft mode or LargeProfilePhotoRight mode when no user is signed in.

LargeProfileTitleDefaultText

Gets or sets the default title text in LargeProfilePhotoLeft mode or LargeProfilePhotoRight mode when no user is signed in.

NormalMailDefaultText

Gets or sets the default mail text in EmailOnly mode when no user is signed in.

RequiredDelegatedPermissions

Gets required delegated permissions for the ProfileCard control

UserId

Gets or sets user unique identifier.

Methods

OnApplyTemplate()

Override default OnApplyTemplate to initialize child controls

Applies to