Articles in this section

How to handle the events of numeric text box in Xamarin.iOS application?

From Volume 2 2017 release, SFNumericTextBoxDelegate property has been removed and find their corresponding release notes as follows.

 

https://help.syncfusion.com/xamarin-ios/release-notes/v15.2.0.40?type=all#SfNumericTextBox-breaking-changes

 

To handle the value changes in SfNumericTextBox, use the ValueChanged event instead of delegates as shown in the following code snippet.

 

[C#]

  public partial class ViewController : UIViewController
    {
      …
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            …
            SfNumericTextBox numericTextBox = new SfNumericTextBox();
            numericTextBox.Frame = new CoreGraphics.CGRect(10, 50, 200, 50);
            …
            numericTextBox.ValueChanged += (sender, e) =>
            {
                     // do your desired action while changing the value of numeric text box
            };
            …
            this.View.AddSubview(numericTextBox);
        }
        …
    }

See Also

How to format the numeric text box value

How to restrict the value limit in numeric text box

How to allow null value in Xamarin.iOS numeric text box

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied