From 919eedc0fa5f217ce5888d599b0eeaf3f6dc5fc5 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 14 May 2019 08:32:07 -0400 Subject: [PATCH] colored password property --- src/App/Pages/Generator/GeneratorPageViewModel.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/App/Pages/Generator/GeneratorPageViewModel.cs b/src/App/Pages/Generator/GeneratorPageViewModel.cs index 32a7014b9..f12fe0a34 100644 --- a/src/App/Pages/Generator/GeneratorPageViewModel.cs +++ b/src/App/Pages/Generator/GeneratorPageViewModel.cs @@ -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;