-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avalonia11 Events Binding invalid #42
Comments
Hmm, I don't know what outer control the The sample code below is using Epoxy on Avalonia11 and it works as intended: <epoxy:EventBinder.Events>
<epoxy:Event EventName="Opened" Command="{Binding Opened}" />
</epoxy:EventBinder.Events> // Window shown:
this.Opened = Command.Factory.Create(() =>
{
// ...
} |
I am using C# language and TargetFramework is .net 8 |
Thanks, I reproduced your problem and will analyze it, please wait! |
… InitializeComponent() on Avalonia. #42
Being deployed 1.14.0 contains bug fix, could you please test it? |
Version 1.14.0 is test ok! |
Avalonia version : 11.0.10
Epoxy.Avalonia11 : 1.13.0
ep:EventBinder.Events
<ep:Event Command="{Binding ViewLoaded}" EventName="Loaded" />
</ep:EventBinder.Events>
public string Greeting { get; set; } = "Welcome to Avalonia!";
public Command ViewLoaded { get; }
public MainViewModel()
{
this.ViewLoaded = Command.Factory.Create(() =>
{
Greeting = "Hello!";
return default;
});
}
ViewLoaded command not invoke.
The text was updated successfully, but these errors were encountered: