foo.Bar = value
is a syntax to call Bar
property setter on foo
instance. Attached properties are not normal properties and their syntax is different, because they need one more parameter (one is instance to attach property and another is property owner): foo.SetValue(bar, value)
or SomeType.SetBar(foo, value)
. To better understand concept it's worth to refer wpf topics, avalonia help is not extensive enough.