elmish / Elmish.WPF

Static WPF views for elmish programs
Other
434 stars 71 forks source link

Boxingless static bindings #609

Open xperiandri opened 3 months ago

xperiandri commented 3 months ago

High-level description Currently, all the bindings are converted to bindings data of obj Can this be avoided for static bindings? Maybe just implement an interface that does boxing but keep bindings typed with particular types inside?

marner2 commented 1 month ago

Can you give me more specifics into what you're asking? Elmish.WPF already does this for static bindings (for example, if you use SubModelT.req you will get back the actual type of the sub model on the property).