Gu.Wpf.NumericInput icon indicating copy to clipboard operation
Gu.Wpf.NumericInput copied to clipboard

CanValueBeNull with RegexPattern not working(?)

Open XavrasX opened this issue 4 years ago • 0 comments

Hi. I've tried to bind decimal? to DecimalBox, but with any RegexPattern there is validation error. While there's no pattern removig value from decimalbox don't causes errors. I tried different patterns and didn't find solution. My example:

 xmlns:numeric="http://gu.se/NumericInput"

 <numeric:DecimalBox
        NumberStyles="AllowDecimalPoint"
       CanValueBeNull="True"
       RegexPattern="(^$)|(^\d{4})"
 />

XavrasX avatar Apr 28 '21 12:04 XavrasX