Login Status

Inherits from Xamarin.Forms.ContentView

The Login Status control displays an icon and message encouraging individuals to log in. After logging in, it will display their profile image, and tapping will provide the option to capture or upload a new photo.

Properties

Property

Type

Description

WelcomeMessage

string Lava

The welcome message that is displayed when a user is logged in. Defaults to Hello {{ CurrentPerson.FirstName }}!

LoginMessage

string Lava

The login message that is displayed if a user is not logged in. Defaults to Login.

EditProfileLabel

string Lava

The edit profile subtext that is displayed if a user is logged in. Defaults to Edit Profile.

LoginLabel

string Lava

The login subtext that is displayed if a user is not logged in. Defaults to Tap to Personalize.

NoProfileIcon

string

The no profile icon that is displayed if a user is logged in but has no profile photo. Defaults to resource://Rock.Mobile.Resources.profile-no-photo.png.

NoProfileIconColor

If set this will paint the NoProfileIcon image with the specified color.

NotLoggedInIcon

string

The image that is displayed if no user is logged in. Defaults to resource://Rock.Mobile.Resources.person-no-photo-unknown.svg.

NotLoggedInColor

If set this will paint the NotLoggedInIcon image with the specified color.

ProfilePageGuid

Guid

The profile page unique identifier that the user will be directed to when they tap on the Edit Profile text.

ImageSize

double

The width and height of the profile image to be displayed. Defaults to 80.

ImageBorderSize

double

The width of the profile image border to be displayed. Defaults to 0.

ImageBorderColor

The color to use when drawing the border around the profile image. Defaults to White.

TitleFont

The font to use when rendering the Title text.

TitleFontSize

double

The size of the font to use when rendering the Title text.

TitleTextColor

The color to use when rendering the Title text.

SubTitleFont

The font to use when rendering the SubTitle text.

SubTitleFontSize

double

The size of the font to use when rendering the SubTitle text.

SubTitleTextColor

The color to use when rendering the SubTitle text.

Example

<Rock:LoginStatus />

Update Photo

Users will have the option to take a new photo or select an existing one from their photo library. These options appear in a popup window that you can style using the CSS classes listed below.

Last updated

⚙️ Powered by Rock RMS