Quantcast
Channel: User Liyun Zhang - MSFT - Stack Overflow
Viewing all articles
Browse latest Browse all 445

Answer by Liyun Zhang - MSFT for .NET Maui Binding Warning, "LoginCommand" property not found on LoginPageViewModes

$
0
0

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.


Viewing all articles
Browse latest Browse all 445

Latest Images

Trending Articles



Latest Images