Class LoginViewModel
The login view model.
Implements
Inherited Members
Namespace: Phoenix.Aruba.Login
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class LoginViewModel : BindableBase, INotifyPropertyChanged
Constructors
View SourceLoginViewModel(LoginConfig, IEventAggregator)
Initializes a new instance of the LoginViewModel class.
Declaration
public LoginViewModel(LoginConfig config, IEventAggregator eventAggregator)
Parameters
| Type | Name | Description |
|---|---|---|
| LoginConfig | config | The login configuration. |
| IEventAggregator | eventAggregator | The event aggregator. |
Properties
View SourceCancelCommand
Gets the cancel command.
Declaration
public ICommand CancelCommand { get; }
Property Value
| Type | Description |
|---|---|
| ICommand |
LoginCommand
Gets the login command.
Declaration
public ICommand LoginCommand { get; }
Property Value
| Type | Description |
|---|---|
| ICommand |
Message
Gets the message for login.
Declaration
public string Message { get; }
Property Value
| Type | Description |
|---|---|
| string |
Password
Gets or sets the password.
Declaration
public string Password { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RememberCredentials
Gets or sets a value indicating whether to remember credentials.
Declaration
public bool RememberCredentials { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ShowRememberOption
Gets a value indicating whether to show the remember credentials option.
Declaration
public bool ShowRememberOption { get; }
Property Value
| Type | Description |
|---|---|
| bool |
UserName
Gets or sets the user name.
Declaration
public string UserName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceDoLogin()
Log in with the given credentials.
Declaration
public void DoLogin()
ToLoginData()
Convert the login information to a LoginData class.
Declaration
public LoginData ToLoginData()
Returns
| Type | Description |
|---|---|
| LoginData | The login data class. |