I have a create-account page in my PCL, with a button that depends on several entry fields.
I want to enable the Create button only when the fields have the proper input. Here's my markup:
<Button Text="Create Account" Clicked="CreateAccountButton_Clicked" IsEnabled="False">
<Button.Triggers>
<MultiTrigger TargetType="Button">
<MultiTrigger.Conditions>
<BindingCondition Binding="{Binding Source={x:Reference EmailValidator}, Path=IsValid}" Value="True" />
<BindingCondition Binding="{Binding Source={x:Reference PasswordValidator}, Path=IsValid}" Value="True" />
</MultiTrigger.Conditions>
<Setter Property="IsEnabled" Value="True" />
</MultiTrigger>
</Button.Triggers>
</Button>
I have verified that the validators are setting their IsValid properties to True, yet the button is NOT being enabled. I am using an Android emulator and Visual Studio 2019.
The code above is identical to several examples I found online.
Am I missing something?
In your Xaml :
My Example :
Convert Class:
Test this and tell me what it looks like!
Best regrads