Skip to content

ActiveRectangle height in ListView to match TreeView and WinUI #11030

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cdock1029
Copy link

@cdock1029 cdock1029 commented Aug 5, 2025

Description

The TreeView ActiveRectangle is 16. The WinUI Gallery and Windows Settings apps both seem to show ListViews with this size rectangle. The WPF ListView ActiveRectangle height should match up with all of these other ones, currently it looks different from the others.

Customer Impact

Inconsistent UI

Testing

Nothing really, just changed all places I could see that were defined too tall.

Risk

Microsoft Reviewers: Open in CodeFlow

@Copilot Copilot AI review requested due to automatic review settings August 5, 2025 18:25
@cdock1029 cdock1029 requested a review from a team as a code owner August 5, 2025 18:25
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the ActiveRectangle height in ListView controls from 18 to 16 pixels to achieve visual consistency with TreeView controls and WinUI design standards.

Key Changes:

  • Reduced ActiveRectangle height from 18 to 16 pixels across ListView templates
  • Applied changes to both standard and GridView ListView item templates

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.xaml Updates ActiveRectangle height in two ListView item control templates
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/ListViewItem.xaml Updates ActiveRectangle height in ListView item style templates

@dotnet-policy-service dotnet-policy-service bot added PR metadata: Label to tag PRs, to facilitate with triage Community Contribution A label for all community Contributions labels Aug 5, 2025
@cdock1029
Copy link
Author

@dotnet-policy-service agree

@dipeshmsft
Copy link
Member

@cdock1029, can you run the script ThemeGenerator.Fluent.ps1 to generate changes in rest of the fluent theme files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants