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

ToggleButton在赋值背景色后,Checked的样式被改变 #446

Open
xiaohutuxian123 opened this issue Oct 25, 2024 · 2 comments
Open

Comments

@xiaohutuxian123
Copy link

image
image

@rabbitism
Copy link
Member

因为ToggleButton check和非check状态的背景颜色都是有意义的,所以这部分我们没有定义成修改模板内部元素,而是直接修改控件背景。如果想要重新定义背景,可以考虑覆盖资源ToggleButtonPrimaryCheckedBackground和ToggleButtonDefaultBackground

@rabbitism
Copy link
Member

@zdpcdt Do you think we should also modify template background for ToggleButton?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants