Skip to content

TreeView with checkboxes and DrawDefault = true renders incorrectly #12601

@mario-mantese

Description

@mario-mantese

.NET version

net8

Did it work in .NET Framework?

Not tested/verified

Did it work in any of the earlier releases of .NET Core or .NET 5+?

No response

Issue description

Same issue as described in https://stackoverflow.com/q/69978042
DrawDefault=true is not rendering nodes correctly in checkboxes are present

Steps to reproduce

Create a form, add a TreevView with CheckBoxes=true and DrawMode=OwnerDrawText
In OnDrawNode event only set DrawDefault=true
Show the form: checkboxes are shown corrupted on the right border
Image

Metadata

Metadata

Assignees

Labels

🪲 bugProduct bug (most likely)📖 documentation: breakingplease open a breaking change issue https://github.com/dotnet/docs/issues/new?assignees=gewarren🚧 work in progressWork that is current in progress

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions