Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

Keep selected style even when not focused #52

Open
zspitz opened this issue May 17, 2020 · 2 comments
Open

Keep selected style even when not focused #52

zspitz opened this issue May 17, 2020 · 2 comments

Comments

@zspitz
Copy link

zspitz commented May 17, 2020

Is it possible to restyle the control somehow, such that even when the control doesn't have the focus it will still have the same selection style?

image

In the image above, the datagrid keeps the same selection style even when it isn't in focus.

@ygoe
Copy link
Owner

ygoe commented May 17, 2020

This would be against UI design guidelines and is done intentionally. Only the focused control has the blue colour, unfocused elements are grey instead. This has been the case in every previous version of Windows. Many modern remakes, like Windows Forms and WPF, seem to be only half-baked and ignore that part of visual feedback, confusing the user. I mean, just look at how badly WPF has been adapted to the Windows 8 and Windows 10 theme. (Hint: almost not at all.)

@zspitz
Copy link
Author

zspitz commented May 17, 2020

I certainly didn't mean that the default styling should be this way. But I feel that in my specific case the three controls are exposing the same selection as if they were a single control, and it's therefore appropriate for me to ignore the UI guidelines. I was hoping for some way of doing this, much like I'm doing for the standard WPF controls.

I would argue it's similar to how MultiSelectTreeview doesn't differentiate visually between the last selected treeview item, which presumably has the keyboard focus; and the other selected treeview items which don't have keyboard focus.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants