C#C
C#3y ago
eduardoA

Microsoft MVVM toolkit

I have a very simple question

I have two entries and a button

<inputLayout:SfTextInputLayout
    ContainerBackground="White"
    ContainerType="Outlined"
    Hint="Email"
    IsHintAlwaysFloated="True"
    OutlineCornerRadius="8">
    <Entry />
</inputLayout:SfTextInputLayout>

<inputLayout:SfTextInputLayout
    Grid.Row="1"
    ContainerBackground="White"
    ContainerType="Outlined"
    Hint="Password"
    IsHintAlwaysFloated="True"
    OutlineCornerRadius="8">
    <Entry />
</inputLayout:SfTextInputLayout>

this is the command I am executing

[RelayCommand]
async Task Register() {
IsPopOpen = false;

//await dataService.AddAsync("Users", Student);
}
```

what I want to do is enable the button only if the email and password are entered
Was this page helpful?