Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CheckBox focus rectangle has no padding #1323

Closed
JohnTasler opened this issue Jan 31, 2025 · 0 comments
Closed

CheckBox focus rectangle has no padding #1323

JohnTasler opened this issue Jan 31, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@JohnTasler
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant