miroiu / nodify

Highly performant and modular controls for node-based editors designed for data-binding and MVVM.
https://miroiu.github.io/nodify
MIT License
1.27k stars 205 forks source link

Reorder DataTemplates in calculator demo for easier Avalonia merges #97

Closed BAndysc closed 4 months ago

BAndysc commented 4 months ago

📝 Description of the Change

This PR doesn't change anything in WPF behaviour.

I have made it only to make Avalonia port more similar.

Backstory

In WPF, the order of data templates does not matter. This is because in WPF subclasses are not matched (i.e. class B : A { }, data template for A will not match if B is provided). In Avalonia subclasses are also matched, because of that the order of data templates matter and I had to reorder them in the Avalonia port.

🐛 Possible Drawbacks

Uglier git blame ;___;