[PR #7970] Replace ObjectModel references in SUI #27045

Open
opened 2026-01-31 09:19:39 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/7970

State: closed
Merged: Yes


This PR's main goal was to get rid of all our ObjectModel references and replace them with references to TSM.

There's a lot of places in the SUI where I wasn't able to easily drop in the TSM. Usually those settings types aren't as simple as a boolean, so they'll require some templating and finessing. For those settings, I've either commented them out for now or attempted to replace them. Here's a TLDR of what I've done in this PR.

  • Since MainPage is the entry point, it gets a CascadiaSettings object to hold on to, and that's the settings object the rest of the pages will bind to.
  • Deleted everything inside of ObjectModel along with their references.
  • Replaced the ObjectModel references in the .xaml files with a reference to the settings object obtained in MainPage
  • Commented out a couple of settings here and there that might need converters and/or templating.
  • Attempted to write out most of the templating and data binding code for ColorSchemes.xaml
**Original Pull Request:** https://github.com/microsoft/terminal/pull/7970 **State:** closed **Merged:** Yes --- This PR's main goal was to get rid of all our ObjectModel references and replace them with references to TSM. There's a lot of places in the SUI where I wasn't able to easily drop in the TSM. Usually those settings types aren't as simple as a boolean, so they'll require some templating and finessing. For those settings, I've either commented them out for now or attempted to replace them. Here's a TLDR of what I've done in this PR. - Since `MainPage` is the entry point, it gets a `CascadiaSettings` object to hold on to, and that's the settings object the rest of the pages will bind to. - Deleted everything inside of `ObjectModel` along with their references. - Replaced the ObjectModel references in the `.xaml` files with a reference to the settings object obtained in `MainPage` - Commented out a couple of settings here and there that might need converters and/or templating. - Attempted to write out most of the templating and data binding code for `ColorSchemes.xaml`
claunia added the pull-request label 2026-01-31 09:19:39 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27045