Skip to content

Bug: Column header text is not vertically centered in Details layout #17842

Description

@arklnd

Description

In the Details layout view (e.g., DetailsLayoutPage.xaml), the text in column headers (e.g., "Name", "Date Modified") appears vertically offset toward the bottom edge, rather than being centered within the 40-pixel header height. This is caused by asymmetric padding in the DataGridHeader control (Padding="12,12,12,0"), which provides 12 pixels of top padding but 0 pixels of bottom padding, biasing the content downward. The inner TextBlock is centered within the button's content area, but the uneven padding makes it look misaligned.

Image

Steps To Reproduce

  1. Open the Files app and navigate to a folder.
  2. Switch to the Details layout view (if not already selected).
  3. Observe the column headers in the list view (e.g., "Name", "Date Modified").
  4. Note that the header text appears closer to the bottom of the header bar than the top, not centered vertically.
  5. (Optional) Inspect the [DataGridHeader.xaml] file to confirm the Padding="12,12,12,0" on the Button element.

Files Version

4.0.11

Windows Version

22631.6060

User ID

No response

Log File

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions