Example #1
0
        void SetFormatter()
        {
            var formatter = new NSNumberFormatter
            {
                NumberStyle           = NSNumberFormatterStyle.Decimal,
                Lenient               = true,
                UsesGroupingSeparator = false,
                MinimumFractionDigits = (nnint)DecimalPlaces,
                MaximumFractionDigits = (nnint)MaximumDecimalPlaces
            };

            text.Formatter = formatter;
            if (Widget.Loaded)
            {
                text.SetNeedsDisplay();
            }
        }