-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace class-based XAML converters with bound function converters #10387
Comments
/cc @chingucoding 😄 since you asked! |
Awesome, thank you @DHowett ! |
Out of curiosity, what is "blocking" this? Are there technical reasons or is it just that other things are more important than this? |
Nothing at all, just available developer time. 😄 We've got so much to do, and only so many hours in the work week. |
Ah haha I see, the classical developer problem! Good to know though that it's up for grabs then and not blocked by technical issues! |
If you're interested in doing it, I'd be happy to assign you so that someone else doesn't come swoop in and do it! 😁 |
I currently have a lot of things on my plate, so I'm not sure when I would get to this. I'll let you know when I have more time and would be able to work this; if someone else wants to work on this, I don't want to block anyone here. |
@DHowett I would like to take a look at this now, feel free to assign this to me :) |
Awesome! Thanks :) |
So after working on this and finally realizing how BindBack works, it seems that we will need to modify some models to provide a BindBack function. Is that fine behavior? In that case, should the converters reside in the Settings:Editor project and be shared to other projects? |
🎉This issue was addressed in #10846, which has now been successfully released as Handy links: |
With the Settings UI, we have had an immense proliferation of class-based xaml converters.
They're pretty heavy, and they clutter the metadata with classes (and, well, clutter our build with idl files!). We also have to keep instances of them laying around for every xaml page that uses them.
We should instead bind more things with x:Bind Functions!
Proposal:
Introduce
Microsoft.Terminal.Settings.Editor.Converters
which has static conversion functions on it.Use them exclusively in the settings editor.
Get rid of all the converter classes.
Evaluate the need for
BindBack
reverse converters. 😄The text was updated successfully, but these errors were encountered: