AvaloniaUI / Avalonia.Markup.Declarative

Provides helpers for declarative ui in C#
372 stars 21 forks source link

Support for property chain in @ binding syntax #49

Closed zacfromaustinpowder closed 3 months ago

zacfromaustinpowder commented 3 months ago

The way it was before didn't work with property chains like @vm.Foo.Bar.Baz

zacfromaustinpowder commented 3 months ago

The sample I adapted doesn't seem to be working.

GetNameFromPropertyPath returns "MyObject.MyProperty" as expected, yet the binding is unresponsive.

However if I manually set the text to .Text(new Binding("MyObject.MyProperty")) it works fine.

So idk what's going on there.

gritsenko commented 3 months ago

pretty elegant solution! nice