w-ahmad / WinUI.TableView

A light weight TableView component for WinUI3
MIT License
92 stars 6 forks source link

Additional coloring #21

Open Petrarca181 opened 1 month ago

Petrarca181 commented 1 month ago

Is your feature request related to a problem? Please describe. Hello, will be nice to have alternate row foreground/background coloring. And vertical + horizontal bars option.

Additional context I think it's important for long tables readability.

w-ahmad commented 3 weeks ago

I just found out about an extension in the Community Toolkit that allows you to set alternate colors on a ListView. Although I haven't tested it yet, it seems like it's worth giving a shot.

https://learn.microsoft.com/en-us/dotnet/communitytoolkit/windows/extensions/listviewextensions#alternatecolor

I'll make an effort to include alternating row colors and grid lines in the next major release.

Petrarca181 commented 3 weeks ago

I just found out about an extension in the Community Toolkit that allows you to set alternate colors on a ListView. Although I haven't tested it yet, it seems like it's worth giving a shot.

https://learn.microsoft.com/en-us/dotnet/communitytoolkit/windows/extensions/listviewextensions#alternatecolor

I'll make an effort to include alternating row colors and grid lines in the next major release.

It works, but only after I pass over items with pointer. Still would be nice to have control over both colors main and alternate.