diff --git a/ClientApp/ModernEncryption/Presentation/ViewModel/ChannelPageViewModel.cs b/ClientApp/ModernEncryption/Presentation/ViewModel/ChannelPageViewModel.cs index 96cfa72..c06d999 100644 --- a/ClientApp/ModernEncryption/Presentation/ViewModel/ChannelPageViewModel.cs +++ b/ClientApp/ModernEncryption/Presentation/ViewModel/ChannelPageViewModel.cs @@ -21,7 +21,18 @@ public class ChannelPageViewModel : ValidationBase, INotifyPropertyChanged public ICommand ValidateMessageCommand { protected set; get; } public ICommand ShowKeyCommand { protected set; get; } public Page KeyPage { get; set; } - public bool KeyVisibility { get; set; } + private bool _keyVisibility = true; + + public bool KeyVisibility + { + get => _keyVisibility; + set + { + if (_keyVisibility == value) return; + _keyVisibility = value; + OnPropertyChanged("KeyVisibility"); + } + } public string Title {