ObservableEvents icon indicating copy to clipboard operation
ObservableEvents copied to clipboard

Some controls have only NullEvents

Open RomanSoloweow opened this issue 4 years ago • 4 comments

image

RomanSoloweow avatar Jul 22 '21 07:07 RomanSoloweow

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

glennawatson avatar Jul 22 '21 08:07 glennawatson

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

NameTextBox it's Avalonia.Controls.TextBox

RomanSoloweow avatar Jul 22 '21 08:07 RomanSoloweow

Thanks.

glennawatson avatar Jul 22 '21 08:07 glennawatson

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")

BinaryCraX avatar Jul 01 '24 15:07 BinaryCraX