CornerRadius with IntegerUpDown

Open
#1,773 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp
Domain
desktop

Research direction

Start by tracing the IntegerUpDown inheritance chain through CommonNumericUpDown, NumericUpDown, UpDownBase, InputBase, and Control. Inspect the NumericUpDown and WatermarkTextBox styles and templates to establish where corner-radius customization would need to apply; the expected result is rounded IntegerUpDown edges as shown in the attached image.

Written by the indexing model from the issue text.

Description

I tried different ways to modify IntegerUpDown to get rounded edges.
Here are my observations:
IntegerUpDown -> CommonNumericUpDown -> NumericUpDown -> UpDownBase -> InputBase -> InputBase -> Control

NumericUpDown has a Style that indicates that the control consists of a ButtonSpinner x:Name="PART_Spinner" and a WatermarkTextBox x:Name="PART_TextBox"
(in the NumericUpDown class it is specified that [TemplatePart( Name = PART_TextBox, Type = typeof( TextBox ) )])
Everything is clear here

WatermarkTextBox -> AutoSelectTextBox -> TextBox
WatermarkTextBox also has its own Style and defines a new Template for it.
I've been trying to change different Templates in different places throughout the day, but I still can't get the result I want
1

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

Contributor guide

No contributing guide indexed for this repository

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 xceedsoftware/wpftoolkit

All issues in xceedsoftware/wpftoolkit

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.