From 92e347d1ac03397eeb10a83b4b91d5ac5df57f6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=C3=BCring?= Date: Fri, 12 Apr 2024 09:52:32 +0200 Subject: [PATCH] Fixed missing notification (inspired by InputKit.Shared.Controls.AdvancedEntry.CheckAndDisplayValidations()) --- src/UraniumUI.Material/Controls/InputField.Validation.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/UraniumUI.Material/Controls/InputField.Validation.cs b/src/UraniumUI.Material/Controls/InputField.Validation.cs index 4b5a5ea9..5f81b325 100644 --- a/src/UraniumUI.Material/Controls/InputField.Validation.cs +++ b/src/UraniumUI.Material/Controls/InputField.Validation.cs @@ -55,7 +55,8 @@ protected virtual void CheckAndShowValidations() { endIconsContainer.Remove(iconValidation.Value); this.Remove(labelValidation.Value); - } + OnPropertyChanged(nameof(IsValid)); + } } else { @@ -66,7 +67,8 @@ protected virtual void CheckAndShowValidations() { endIconsContainer.Add(iconValidation.Value); this.Add(labelValidation.Value, row: 1); - } + OnPropertyChanged(nameof(IsValid)); + } } }