Skip to content

When IsInactiveSelectionHighlightEnabled is turned on, then scrolling has visual defect #1698

Open
@MilosAuder

Description

@MilosAuder
  • .NET Version: 4.5.1
  • Windows version: 10
  • Does the bug reproduce also in WPF for .NET Framework 4.8?: Don't know

Problem description:
See title. Visual defect is that characters look different than they should - some are gray (like highlighted), some are not - see attached picture.

Expected behavior:
There are no strange visual effects and all characters look the same.

Minimal repro:
Setup: I have RichTextBox with IsInactiveSelectionHighlightEnabled = true. Inside is a longer text that needs scrollbar.

  1. Select all text.
  2. Click outside text box to lose focus.
  3. Text is still highlighted as expected with light gray.
  4. When scrolling text box there is strange visual defect, some characters are light gray as they should be, but some characters are not and are black.

StackOverflow links with similar problem:
StackOverflow1
StackOverflow2

Screenshot: fed-bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions