Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1865
Why is this XamtextEditor format not working?
posted

 

Style esBeta = new Style();                        

esBeta.TargetType = typeof(XamTextEditor);                        

esBeta.Setters.Add(new Setter(XamTextEditor.MaskProperty, "-nnnn.nnnnn"));                        

esBeta.Setters.Add(new Setter(XamTextEditor.FormatProperty, "#.##"));                        

f.Settings.EditorStyle = esBeta;

 

// Where "f" is declared earlier as (Field f in e.FieldLayout.Fields)

 

The number is showing as 1.3232132321 as opposed to 1.32

Note: I do need to do this in code as opposed to xaml.

 

Parents Reply Children
No Data