MultiSelectTreeView icon indicating copy to clipboard operation
MultiSelectTreeView copied to clipboard

Keep selected style even when not focused

Open zspitz opened this issue 5 years ago • 2 comments

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.

zspitz avatar May 17 '20 01:05 zspitz

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.)

ygoe avatar May 17 '20 08:05 ygoe

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.

zspitz avatar May 17 '20 08:05 zspitz