Login Status Photo
Last updated
Last updated
Inherits from Xamarin.Forms.ContentView
The LoginStatus view is the one you would normally use in the Flyout shell. But what if you want to just present a small icon that indicates to the user if they are logged in or not? The LoginStatusPhoto view does just that. In fact, LoginStatus uses this view itself to present the user's photo.
A number of properties allow you to specify how the profile photo will be displayed, and what photos to use if no profile picture is available or if the user is not logged in. Another set of properties allow you to specify the commands to be executed when the user interacts with the profile picture.
Property
Type
Description
NotLoggedInPhotoSource
string
The image that is displayed if no user is logged in. Defaults to resource://Rock.Mobile.Resources.icon-person-not-logged-in.svg.
NotLoggedInPhotoFillColor
Provides a way to quickly change the color of the entire image when drawing the "not logged in" image.
LoggedInNoPhotoSource
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.icon-person-no-photo.png.
LoggedInNoPhotoFillColor
Provides a way to quickly change the color of the entire image when drawing the "logged in but no profile photo" image.
ProfilePhotoStrokeColor
The color to use when drawing the border around the profile image.
ProfilePhotoStrokeWidth
double
The width of the profile image border to be displayed. Defaults to 0.
ProfilePhotoCircle
boolean
If true, then the logged in profile photo image will be drawn with the Circle transformation applied. Defaults to false.
NotLoggedInCommand
ICommand
The command to be executed when the user interacts with the photo when they are not logged in.
NotLoggedInCommandParameter
object
The parameter to be passed to the NotLoggedInCommand
.
LoggedInCommand
ICommand
The command to be executed when the user interacts with the photo when they are logged in.
LoggedInCommandParameter
object
The parameter to be passed to the LoggedInCommand
.