These are chat archives for AvaloniaUI/Avalonia

18th
Jun 2015
José Manuel Nieto
@SuperJMN
Jun 18 2015 21:05 UTC
Woohooo!!!
solved! I shut up WPF's f**ng mouth!
It required A LOT of redesign, but I'm happy with the result!!
WPF's SetValue(...) method is happy if you set an Expression (like BindingExpression) to any dependency property. It's tightly coupled to this https://msdn.microsoft.com/en-us/library/system.windows.expression(v=vs.110).aspx
(System.Windows.Expression)
all WPF's SetValue does is a big IF
if (value is Expression) ....
José Manuel Nieto
@SuperJMN
Jun 18 2015 21:10 UTC
haha, elegant!
if the value is direct it follows the nice way
Otherwise, if the value is an Expression (not the Expression Tree type), then it summons the Sacred Spirit of Dependency Properties and it comes shouting and spitting fire.
in few words: please, don't build a DP system like that. It's UGLY (but ultimately, it has been effective for years :P)
Steven Kirk
@grokys
Jun 18 2015 23:09 UTC
wow, Jose! i have no idea what you're talking about. i think you have attained a Higher Level of Understanding
José Manuel Nieto
@SuperJMN
Jun 18 2015 23:40 UTC
haha
A kind of madness
Steven Kirk
@grokys
Jun 18 2015 23:44 UTC
;)