Skip to content

NumericUpDownLib Version 3.3

Compare
Choose a tag to compare
@Dirkster99 Dirkster99 released this 22 Nov 11:52
· 12 commits to master since this release

#53 Fixes "FormatString not working with custom texts", "Control not scaling correctly with HorizontalAlignment set to 'Stretch'"

Fix #1: FormatString not working with custom texts

  • do not put format string into "format-string-like" curly brackets if if allready looks like a format string
  • Consolidate Format string handling in base class
  • adapt demo application

Fix #2: Control not scaling correctly with HorizontalAlignment set to "Stretch"

  • control´s grid columns were set to auto and Horizontal allignment was set to "Center". TextBlocks were set to "Left"-Alignment. This prevents control to scale correctly in "Stretch"-mode. Buttons must be right-allgined for correct scaling
  • extend demo app with GridSplitters, so that scaling can be validated

FormatException was fixed in Demo tool

Regarding to Microsoft documentation format string "D" is only supported by integral types (sbyte , byte , short , ushort , int , uint , long , ulong , and char)
(see https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings)
So a different Format string must be provided here in demo tool.

This release has been authored by Jürgen Holzer 🙏