A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
Hello @Peter Stuart ,
Thanks for your question.
When updating to the .NET 10 Community Toolkit, Behaviors no longer connect to the ViewModel automatically. You correctly added BindingContext="{Binding Source={x:Reference MyPage}, Path=BindingContext}" to manually fix this.
However, the command may fail silently because it cannot find "MyPage".
I want to confirm again if you have added the name tag x:Name="MyPage" to your ContentPage at the very top of your XAML file.
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="YourApp.Views.LoginPage"
x:Name="MyPage"> ```
Please try this and let me know whether it resolves the issue. If not, I'd be happy to investigate further.
I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback. Thank you.