[PR #4729] [MERGED] Convert TermControl to .xaml #25914

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/4729
Author: @DHowett-MSFT
Created: 2/26/2020
Status: ✅ Merged
Merged: 2/27/2020
Merged by: @DHowett-MSFT

Base: master ← Head: dev/duhowett/xaml_all_the_thangs


📝 Commits (3)

  • 22a8ce0 Convert TermControl to a XAML file
  • 1cd20f8 TermControl: Background doesn't work on UserControls...
  • 89464a0 Revisit comment in TCon

📊 Changes

4 files changed (+198 additions, -249 deletions)

View changed files

📝 src/cascadia/TerminalControl/TermControl.cpp (+104 -228)
📝 src/cascadia/TerminalControl/TermControl.h (+5 -18)
➕ src/cascadia/TerminalControl/TermControl.xaml (+81 -0)
📝 src/cascadia/TerminalControl/TerminalControl.vcxproj (+8 -3)

📄 Description

This commit removes all of the custom UI initialization code in
TermControl and replaces it with a xaml file. Some dead or reundant code
was removed as part of this refactoring.

It also fixes two (quasi-related) issues:

  • The search box, on first launch, was offset by the scrollbar even if
    the scrollbar was invisible.
  • The scrollbar state wasn't hot-reloadable.

PR Checklist

  • Closes [a thing that's been hounding me since the beginning, but no real issue]

Validation Steps Performed

Launched, opened, closed, searched and TSF-inputted-into controls.

Fixes #4920


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/4729 **Author:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Created:** 2/26/2020 **Status:** ✅ Merged **Merged:** 2/27/2020 **Merged by:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Base:** `master` ← **Head:** `dev/duhowett/xaml_all_the_thangs` --- ### 📝 Commits (3) - [`22a8ce0`](https://github.com/microsoft/terminal/commit/22a8ce0bc3c2c5629883aba6eecf439e408f46d7) Convert TermControl to a XAML file - [`1cd20f8`](https://github.com/microsoft/terminal/commit/1cd20f8e5e03d2b628a5547ac1583df6de40f8ef) TermControl: Background doesn't work on UserControls... - [`89464a0`](https://github.com/microsoft/terminal/commit/89464a04af0cd8dfb35c73ef30f20acde068726a) Revisit comment in TCon ### 📊 Changes **4 files changed** (+198 additions, -249 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+104 -228) 📝 `src/cascadia/TerminalControl/TermControl.h` (+5 -18) ➕ `src/cascadia/TerminalControl/TermControl.xaml` (+81 -0) 📝 `src/cascadia/TerminalControl/TerminalControl.vcxproj` (+8 -3) </details> ### 📄 Description This commit removes all of the custom UI initialization code in TermControl and replaces it with a xaml file. Some dead or reundant code was removed as part of this refactoring. It also fixes two (quasi-related) issues: * The search box, on first launch, was offset by the scrollbar even if the scrollbar was invisible. * The scrollbar state wasn't hot-reloadable. ## PR Checklist * [ ] Closes [a thing that's been hounding me since the beginning, but no real issue] ## Validation Steps Performed Launched, opened, closed, searched and TSF-inputted-into controls. Fixes #4920 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:12:36 +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#25914