HandyOrg / HandyOrg/HandyControl
ToggleButton样式需求
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.2k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
### 希望添加一种ToggleButton的样式,效果如下图所示:
1、IsChecked为False时:
2、IsChecked为True时:
补充需求:
1、ToggleButton的Content文字内容一定是在两个Thumb的中间
2、当未指定ToggleButton的Width属性时,ToggleButton的宽度会随着Content文字内容长度而自动变化
3、可以手动修改Width和Height属性,实现修改ToggleButton的大小,且IsChecked为True时的背景色占满整个Width宽度,而不是下面存在的问题
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by searching the repository for ToggleButton styles or control templates and inspect the existing WPF styling entry points. Done means the checked and unchecked visuals match the supplied images, content stays between the thumbs, width can follow content or be set explicitly, and the checked background fills the configured width.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100