Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics: Warning: 'LoginCommand' property not found on 'MyAdministrationApp.Viewmodes.LoginPageViewModes', target property: 'Microsoft.Maui.Controls.Button.Command'
This warning show the binding command is failed. This becasue you used both [RelayCommand]
attribute and named the method as LoginCommand()
Please change the public async Task LoginCommand()
to public async Task Login()
. The [RelayCommand]
will auto make the Login method be Login Command. Such as:
[RelayCommand]public async Task Login(){
For more information, you can read the official document about how deos the [RelayCommand]
attribute work.