UI.WPF.Modern icon indicating copy to clipboard operation
UI.WPF.Modern copied to clipboard

[BUG] Datepicker brush color style (including focus visuals) doesn’t match WinUI

Open GID0317 opened this issue 5 months ago • 7 comments

Describe the bug

Datepicker brush color style (including focus visuals) doesn’t match WinUI.

the focus navigation also missing for the top part (Month year or up down) efected both datepicker flyout and calendarview (Only for focus navigation for calendarview the brush is already right) Image

Current: Image Image Image Image

WinUI: Image Image Image Image

Reproduction

Go to datepicker page > Navigate with tab or shift + tab

Suggested Solution

No response

Library Version

0.10.1

Operating System

Windows 11

Framework

.NET Framework

Framework Version

6

Source of Package

Self-Compiled

Additional Notes

No response

Validations

  • [x] Check that there isn't already an issue that reports the same or similar problem.
  • [x] Check that this is a bug in the library that should be fixed, not a feature, also this is not about the documentation. (Or please choose the right repo and template.)
  • [x] This is one single problem, or a few problems with the same cause. (If you want to report multiple problems, please create one issue for every single problem.)
  • [x] You've checked that this problem still exists in the latest version. (Keep in mind that we don't provide any support for old versions.)
  • [x] You know that we can't guarantee that we will satisfy your request. This is not really our duty to do everything anyone asks for. Also, you will treat our staff, contributors, and other users with respect and kindness.
  • [x] You're sure there's something wrong with the library itself, not how you're using it. (If you are having issues using it and need help, please go to discussion.)

GID0317 avatar Jul 15 '25 12:07 GID0317

@GID0317 I think #300 fixes this ?

mou-haz avatar Jul 25 '25 02:07 mou-haz

Hi, yes the focus visual rounded corners issue was resolved for the datepicker. but I think there are still some adjustments needed as mentioned above such as the header brush for the CalendarDatePicker, the background brush, and the focus visual behavior as shown in the video below: Current:

https://github.com/user-attachments/assets/30f195f3-c85d-4c8e-8dec-ccb102f7d872

WinUI:

https://github.com/user-attachments/assets/95d37dd2-67b3-4a02-bebd-95fd343c6309

CalendarDatePicker Header was darker while the CalendarView was almost bland with non-header in WinUI: WinUI: CalendarDatePicker Image

CalendarView Image

Current: CalendarDatePicker Image

CalendarDatePicker Image

The current CalendarDatePicker was brighter dan WinUI too: Current: Image

WinUI: Image

GID0317 avatar Jul 25 '25 04:07 GID0317

As for focus visual, I find many controls have the rectangle focus visuals which does not match WinUI.

NavigationView:

Image

Button:

Image

SettingExpander, etc..

Not sure why this will happen🤔. IIRC, ModernWPF has rounded rectangle focus visuals for many controls.

Jack251970 avatar Sep 16 '25 08:09 Jack251970

As for focus visual, I find many controls have the rectangle focus visuals which does not match WinUI.

NavigationView:

Image Button: Image SettingExpander, etc..

Not sure why this will happen🤔. IIRC, ModernWPF has rounded rectangle focus visuals for many controls.

I agree, in ModernWPF, it has rounded corners when I tested their library. Recently, @mou-haz has been working hard to improve this styling on https://github.com/iNKORE-NET/UI.WPF.Modern/pull/282. Even though some context menus and menu flyouts have small differences in the visual focus styling unlike on WinUI, I think most of it is already completed. Could you test the PR as well? Maybe we can find some bugs, missing styles, or consistency issues in there

GID0317 avatar Sep 16 '25 09:09 GID0317

@GID0317 I will test it during my free time. Thanks for letting me know!

Jack251970 avatar Sep 16 '25 09:09 Jack251970

@mou-haz Thanks for your fix!👍

Jack251970 avatar Sep 16 '25 09:09 Jack251970

@Jack251970 you are welcome.

mou-haz avatar Sep 18 '25 03:09 mou-haz