From ee72f4d4cd5966fd45f119025bd29c6267d621b2 Mon Sep 17 00:00:00 2001 From: Andrii Chebukin Date: Sun, 22 Aug 2021 00:07:53 +0300 Subject: [PATCH] Implemented validation sample using ValidationControl with error styling --- .../Samples.Shared/ValidationPage.xaml | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/Samples/Samples.Shared/ValidationPage.xaml b/src/Samples/Samples.Shared/ValidationPage.xaml index 112c1000..8e748fed 100644 --- a/src/Samples/Samples.Shared/ValidationPage.xaml +++ b/src/Samples/Samples.Shared/ValidationPage.xaml @@ -13,7 +13,8 @@ Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" mc:Ignorable="d xamarin"> - + --> + + + + + + PropertyName="Value" + ErrorContentStyle="{StaticResource TextBoxErrorStyle}" + ErrorItemTemplate="{StaticResource ErrorItemTemplate}"> + PropertyName="Password" + ErrorContentStyle="{StaticResource TextBoxErrorStyle}" + ErrorItemTemplate="{StaticResource ErrorItemTemplate}">