Skip to content
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

Some controls have only NullEvents #65

Open
RomanSoloweow opened this issue Jul 22, 2021 · 4 comments
Open

Some controls have only NullEvents #65

RomanSoloweow opened this issue Jul 22, 2021 · 4 comments

Comments

@RomanSoloweow
Copy link

image

@RomanSoloweow RomanSoloweow changed the title Some controls has only NullEvents Some controls have only NullEvents Jul 22, 2021
@glennawatson
Copy link
Member

Might be worth if you fill in some more details about platform, what NameTextBox is etc.

@RomanSoloweow
Copy link
Author

OC: Windows 10
.Net: net5.0
Avalonia: 0.10.6
ObservableEvents: 1.0.10

NameTextBox it's Avalonia.Controls.TextBox

@glennawatson
Copy link
Member

Thanks.

@BinaryCraX
Copy link

I just stumbled across the same issue.
My theorie is, that it is because of chaining the ObservableEvents-Source-Generator and the Avalonia-Source-Generator.
Because it works when the generated field is explicitly casted to a type like this:

((Button)Button0).Events().Click.Select(_ => "0")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants