lepoco / lepoco/wpfui

DataGrid Sort icon missing

Open
#1,160 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
9.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

When using a DataGrid and sorting it by clicking on the header the default behavior of the control is to display a sorting indicator (▲|▼ or similar)
due to WPFs usual jank this is turned off as soon as a style is applied to the header, which is also the case in this project

To Reproduce

Add a ui:DataGrid element, fill it with (dummy) data, sort by one of the columns

Expected behavior

Some sort of sorting indicator should be displayed

Screenshots

image

OS version

Edition: Win 11 Pro
Version: 23H2
Build: 22631.3880

.NET version

.NET 8.0

WPF-UI NuGet version

WPF-UI 3.0.4

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in a WPF-UI application using a DataGrid with styled headers, sorting a populated column on .NET 8. Start by locating the DataGrid header styling and compare it with WPF's default sorting behavior; done means a visible ascending or descending indicator appears after sorting.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.