xaml-sdk/MaskedInput/DynamicFormatString
martinivanoff 9205805ba5 Examples update 2016-07-08 11:35:16 +03:00
..
Properties Updated examples for Q2 2014 release 2014-06-18 17:03:42 +03:00
App.config Weekly examples update 2016-02-19 11:31:24 +02:00
App.xaml Updated examples for Q2 2014 release 2014-06-18 17:03:42 +03:00
App.xaml.cs Updated examples for Q2 2014 release 2014-06-18 17:03:42 +03:00
App_SL.xaml Updated examples for Q2 2014 release 2014-06-18 17:03:42 +03:00
App_SL.xaml.cs Updated examples for Q2 2014 release 2014-06-18 17:03:42 +03:00
CustomNumericInput.cs Updated examples for Q2 2014 release 2014-06-18 17:03:42 +03:00
DynamicFormatString_SL.csproj Examples update 2016-05-05 12:15:17 +03:00
DynamicFormatString_WPF.csproj Examples update 2016-05-05 12:15:17 +03:00
DynamicFormatString_WPF.sln Update Examples 2014 Q2 SP1 2014-07-31 17:23:08 +03:00
Example.xaml Updated examples for Q2 2014 release 2014-06-18 17:03:42 +03:00
Example.xaml.cs Updated examples for Q2 2014 release 2014-06-18 17:03:42 +03:00
MainPage.xaml Updated examples for Q2 2014 release 2014-06-18 17:03:42 +03:00
MainPage.xaml.cs Updated examples for Q2 2014 release 2014-06-18 17:03:42 +03:00
MainWindow.xaml Updated examples for Q2 2014 release 2014-06-18 17:03:42 +03:00
MainWindow.xaml.cs Updated examples for Q2 2014 release 2014-06-18 17:03:42 +03:00
Readme.md Examples update 2016-07-08 11:35:16 +03:00

Readme.md

##Dynamic Format String## Users often need to type doubles like 1.234, 56.78, 123.9 and they do NOT need to see these values to be completed with zeros like:

  • 1.23400
  • 56.7800
  • 123.90000

To achieve this effect users can users can use No-Mask (Mask="") and update the FormatString property runtime. Furthermore, users need delete and backspace keys to not produce zeros. For example pressing delete here 12.3|45 to produce 12.35 but not 12.305. This is demonstrated in the sample with overriding the HandleBackKeyNomask and HandleDeleteKeyNoMask methods of the RadMaskedNumericInput. Finally, it is good idea to limit the input somehow both on the left and on the right of the decimal point because double loses precision after 15 digits.

<keywords: dynamicformatstring, maskedinputextensions, maskednumericinput, custom, maximumdigitsonright>