Skip to content

Wpf/WinForms: add text alignment to NumericStepper control#2822

Closed
luke-ransfield wants to merge 3 commits intopicoe:developfrom
luke-ransfield:feature/numeric-stepper-text-alignment
Closed

Wpf/WinForms: add text alignment to NumericStepper control#2822
luke-ransfield wants to merge 3 commits intopicoe:developfrom
luke-ransfield:feature/numeric-stepper-text-alignment

Conversation

@luke-ransfield
Copy link
Copy Markdown

Adds text alignment to the NumericStepper control for WPF/WinForms. Also added examples of NumericStepper for each alignment to the Eto.Test App:

Screenshot 2025-09-14 171843

Have set the default alignment to TextAlignment.Left to keep it consistent with existing behavior.

Have made changes for Gtk but haven't tested.

cwensley added a commit to cwensley/Eto that referenced this pull request Apr 13, 2026
- Fixes up NumericStepper regressions on WPF (which now uses ThemedNumericStepperHandler) due to removal of XWT.
- Added NumericStepper.TextAlignment. Fixes picoe#2822.
- Add ability for IMaskedTextProvider to update text after editing vs. during editing to allow more flexibility for free form input for variable providers
- Add TextBox.ReadOnlyChanged and OnReadOnlyChanged
- Add MinValue/MaxValue/Increment/Wrap/FormatString/MaximumDecimalPlaces/DecimalPlaces to NumericMaskedTextStepper<T>
- Add DecimalPlaces/MaximumDecimalPlaces/FormatString to NumericMaskedTextProvider
@cwensley
Copy link
Copy Markdown
Member

Hey @luke-ransfield,

Thanks so much for submitting this PR. I've added the NumericStepper.TextAlignment property in #2930 and tested on all platforms to ensure consistent/correct behaviour.

Cheers!
Curtis.

@cwensley cwensley added this to the 2.12.0 milestone Apr 13, 2026
cwensley added a commit to cwensley/Eto that referenced this pull request Apr 13, 2026
- Fixes up NumericStepper regressions on WPF (which now uses ThemedNumericStepperHandler) due to removal of XWT.
- Added NumericStepper.TextAlignment. Fixes picoe#2822.
- Add ability for IMaskedTextProvider to update text after editing vs. during editing to allow more flexibility for free form input for variable providers
- Add TextBox.ReadOnlyChanged and OnReadOnlyChanged
- Add MinValue/MaxValue/Increment/Wrap/FormatString/MaximumDecimalPlaces/DecimalPlaces to NumericMaskedTextStepper<T>
- Add DecimalPlaces/MaximumDecimalPlaces/FormatString to NumericMaskedTextProvider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants