dotnet / dotnet/wpf

[Fluent] Fix ListView and GridView style issues

Open
#10,911 0 comments 0 reactions 0 assignees View on GitHub
Win 11 Theming
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

**Here are the broad categories of tasks that need to be done per control for this:**

1. Match resource usage in control styles with WinUI resources where possible
2. Add animations for controls where required to match WinUI.
3. Compare Fluent styles with Aero2 styles to match
3.a. Properties like HorizontalAlignment, VerticalAlignment
3.b. TemplateBinding comparison with Aero2 styles
4. Compare WPF Fluent styles with WinUI styles :
4.a. Convert ControlTemplate Triggers to VisualStates ( to simplify animation's and bring parity with WinUI styles )
4.b. Convert StaticResource's to DynamicResource for properties where customization is needed.
4.c. Define resources for CornerRadius, Thickness, etc. for the controls where it is needed

**Here are the known issues in ListView and GridView style right now**:
1. ListViewItem does not respond to IsPressed event. Currently there is a trigger for IsMouseOver only, and we are not able to differentiate between IsMouseOver and IsPressed states of ListViewItem ( same for GridView as well ).
2. No visual difference when IsEnabled = False is set on a ListView ( same for GridView ).
3. Cursor for GridView header does not seem to be what is generally used for other controls.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.