Skip to content

CheckBox focus rectangle has no padding #1323

@JohnTasler

Description

@JohnTasler

Describe the bug

The focus rectangle shown around a CheckBox has no padding between it and the content of the CheckBox. The root of the issue is that the ControlTemplate for the CheckBox does not utilize the control's Padding property.

To Reproduce

Use the TAB key to set focus to a CheckBox. Observe that, regardless of the CheckBox.Padding, the focus rectangle has no padding between it and the content of the CheckBox.

Image

Expected behavior

The CheckBox.Padding should be applied to the control's ControlTemplate, which fixes the focus rectangle issue.

Image

Screenshots

No response

OS version

Windows 11 - 26100.1.amd64fre.ge_release.240331-1435

.NET version

net9.0-windows

WPF-UI NuGet version

3.0.5

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions