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

Keep selected style even when not focused #52

Open

Description

@zspitz

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.

Activity

  1. ygoe commented on May 17, 2020

    @ygoe
    Owner

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

  2. zspitz commented on May 17, 2020

    @zspitz
    Author

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions