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;