mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
colored password property
This commit is contained in:
parent
9400c22e4f
commit
919eedc0fa
1 changed files with 9 additions and 1 deletions
|
@ -1,9 +1,11 @@
|
|||
using Bit.App.Resources;
|
||||
using Bit.App.Utilities;
|
||||
using Bit.Core.Abstractions;
|
||||
using Bit.Core.Models.Domain;
|
||||
using Bit.Core.Utilities;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
|
@ -42,9 +44,15 @@ namespace Bit.App.Pages
|
|||
public string Password
|
||||
{
|
||||
get => _password;
|
||||
set => SetProperty(ref _password, value);
|
||||
set => SetProperty(ref _password, value,
|
||||
additionalPropertyNames: new string[]
|
||||
{
|
||||
nameof(ColoredPassword)
|
||||
});
|
||||
}
|
||||
|
||||
public FormattedString ColoredPassword => PasswordFormatter.FormatPassword(Password);
|
||||
|
||||
public bool IsPassword
|
||||
{
|
||||
get => _isPassword;
|
||||
|
|
Loading…
Reference in a new issue