[PR #5140] [MERGED] Convert the About and Close All Tabs dialogs to xaml #26128

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/5140
Author: @DHowett-MSFT
Created: 3/26/2020
Status: Merged
Merged: 3/27/2020
Merged by: @undefined

Base: masterHead: dev/duhowett/aboutbox


📝 Commits (4)

  • 93b03a0 Convert the About and Close All dialogs to Xaml markup
  • 0d5b56f Switch to HyperlinkButtons
  • 6eb701f brace init style; words for the word god
  • c0a4655 ...

📊 Changes

5 files changed (+114 additions, -159 deletions)

View changed files

📝 src/cascadia/TerminalApp/Resources/en-US/Resources.resw (+44 -44)
📝 src/cascadia/TerminalApp/TerminalPage.cpp (+27 -113)
📝 src/cascadia/TerminalApp/TerminalPage.h (+5 -2)
📝 src/cascadia/TerminalApp/TerminalPage.idl (+4 -0)
📝 src/cascadia/TerminalApp/TerminalPage.xaml (+34 -0)

📄 Description

Summary of the Pull Request

This pull request replaces about a hundred lines of manual xaml DOM code with a few lines of actual xaml, and wires up bound properties and event handlers in the good and correct way.

As part of this change, I've replaced the giant TextBlock in the about dialog with StackPanels, and replaced the Hyperlinks with HyperlinkButtons. This is in line with other platform applications.

URLs are not localizable resources, so I moved them into the about dialog's xaml. Per #5138, we'll likely change them so that they get localization for "free" (dispatching based on the browser's language, without having to localize the URL in the application).


🔄 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/5140 **Author:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Created:** 3/26/2020 **Status:** ✅ Merged **Merged:** 3/27/2020 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `dev/duhowett/aboutbox` --- ### 📝 Commits (4) - [`93b03a0`](https://github.com/microsoft/terminal/commit/93b03a0af3bf646ad57ebc44613f6e10dbed000f) Convert the About and Close All dialogs to Xaml markup - [`0d5b56f`](https://github.com/microsoft/terminal/commit/0d5b56f688f9bd4de281a12d90226e2bef11d5f9) Switch to HyperlinkButtons - [`6eb701f`](https://github.com/microsoft/terminal/commit/6eb701f7aff1f03323710a76435e4d51727388d5) brace init style; words for the word god - [`c0a4655`](https://github.com/microsoft/terminal/commit/c0a465527b3c16f95fb17e8af1a18d8c28528afd) ... ### 📊 Changes **5 files changed** (+114 additions, -159 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/Resources/en-US/Resources.resw` (+44 -44) 📝 `src/cascadia/TerminalApp/TerminalPage.cpp` (+27 -113) 📝 `src/cascadia/TerminalApp/TerminalPage.h` (+5 -2) 📝 `src/cascadia/TerminalApp/TerminalPage.idl` (+4 -0) 📝 `src/cascadia/TerminalApp/TerminalPage.xaml` (+34 -0) </details> ### 📄 Description ## Summary of the Pull Request This pull request replaces about a hundred lines of manual xaml DOM code with a few lines of actual xaml, and wires up bound properties and event handlers in the good and correct way. As part of this change, I've replaced the giant TextBlock in the about dialog with StackPanels, and replaced the Hyperlinks with HyperlinkButtons. This is in line with other platform applications. URLs are _not_ localizable resources, so I moved them into the about dialog's xaml. Per #5138, we'll likely change them so that they get localization for "free" (dispatching based on the browser's language, without having to localize the URL in the application). --- <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:14:08 +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#26128