Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

ToggleButton样式需求

Open
#1,721 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp
Domain
desktop, frontend

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.

Description

### 希望添加一种ToggleButton的样式,效果如下图所示:

1、IsChecked为False时:
Image

2、IsChecked为True时:
Image

补充需求:
1、ToggleButton的Content文字内容一定是在两个Thumb的中间
2、当未指定ToggleButton的Width属性时,ToggleButton的宽度会随着Content文字内容长度而自动变化
3、可以手动修改Width和Height属性,实现修改ToggleButton的大小,且IsChecked为True时的背景色占满整个Width宽度,而不是下面存在的问题
Image

Dominant language
C#
Stars
7.2k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from HandyOrg/HandyControl

All issues in HandyOrg/HandyControl

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.