From 1d3554528a4d5cd630c9be691e52c7f3fd358d11 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Wed, 22 Feb 2017 14:42:02 +0100 Subject: [PATCH] ne permettre la validation que quand le formulaire est valide --- .../EstimatePages/EditBillingLinePage.xaml | 63 +++++++++++-------- .../Pages/EstimatePages/EditEstimatePage.xaml | 2 +- 2 files changed, 37 insertions(+), 28 deletions(-) diff --git a/ZicMoove/ZicMoove/Pages/EstimatePages/EditBillingLinePage.xaml b/ZicMoove/ZicMoove/Pages/EstimatePages/EditBillingLinePage.xaml index 9399a506..9185c600 100644 --- a/ZicMoove/ZicMoove/Pages/EstimatePages/EditBillingLinePage.xaml +++ b/ZicMoove/ZicMoove/Pages/EstimatePages/EditBillingLinePage.xaml @@ -42,23 +42,29 @@ - - - - - - + - + Style="{Binding Source={x:Reference descriptionLenValidator}, Path=IsValid, Converter={StaticResource boolToStyleImage}}" /> + + + + + + - + + + + @@ -71,13 +77,15 @@ Title="Unité de temps" SelectedItem="{Binding DurationUnit, Mode=TwoWay}"> - + + - - @@ -86,15 +94,18 @@ - - + + + + @@ -103,15 +114,13 @@ + + Clicked="OnValidateClicked" + IsEnabled="{Binding ModelState.IsValid}"> diff --git a/ZicMoove/ZicMoove/Pages/EstimatePages/EditEstimatePage.xaml b/ZicMoove/ZicMoove/Pages/EstimatePages/EditEstimatePage.xaml index b196b1c1..6a345664 100644 --- a/ZicMoove/ZicMoove/Pages/EstimatePages/EditEstimatePage.xaml +++ b/ZicMoove/ZicMoove/Pages/EstimatePages/EditEstimatePage.xaml @@ -100,7 +100,7 @@