[PR #7853] wpf: Add AutoFill to control whether the connection/buffer resizes #27005

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

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

State: closed
Merged: Yes


Adds the ability to manually handle the terminal renderer resizing
events by allowing different render size and WPF control size. This is
done by adding an AutoFill property to the control that prevents the
renderer from automatically resizing and tells the WPF control to fill
in the extra space with the terminal background as shown below:

This PR adds the following:

  • Helper method in the DX engine to convert character viewports into
    pixel viewports
  • AutoFill property that prevents automatic resizing of the renderer
  • Tweaks and fixes that automatically fill in the empty space if
    AutoFill is set to false
  • Fixes resizing methods and streamlines their codepath

Validation Steps Performed

Manual validation with the Visual Studio Integrated Terminal tool
window.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/7853 **State:** closed **Merged:** Yes --- Adds the ability to manually handle the terminal renderer resizing events by allowing different render size and WPF control size. This is done by adding an `AutoFill` property to the control that prevents the renderer from automatically resizing and tells the WPF control to fill in the extra space with the terminal background as shown below: This PR adds the following: - Helper method in the DX engine to convert character viewports into pixel viewports - `AutoFill` property that prevents automatic resizing of the renderer - Tweaks and fixes that automatically fill in the empty space if `AutoFill` is set to false - Fixes resizing methods and streamlines their codepath ## Validation Steps Performed Manual validation with the Visual Studio Integrated Terminal tool window.
claunia added the pull-request label 2026-01-31 09:19:26 +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#27005