We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

MVVM two way binding not working for SfNumericUpDown

I am trying to use MVVM two way binding on SfNumericUpDown in xamarin.ios. But it is not working

Below is the sample code

public Binding<int, object> purchasedQtyBinding = this.SetBinding(
                   () => _materialDetails.QuantityPurchased,
                   () => txtPurchasedQuantity.Value,
                   BindingMode.TwoWay);

And my model property is as below:

private int quantityPurchased;
        public int QuantityPurchased
        {
            get
            {
                return quantityPurchased;
            }
            set
            {
                Set(ref quantityPurchased, value);
            }
        }

3 Replies

BK Bharathiraja K Syncfusion Team April 24, 2019 07:31 AM UTC

Hi Deepa, 
 
Greetings from Syncfusion. Could you please confirm whether you are using MVVM Light in your Xamarin.iOS application to achieve Two-way Binding concepts? Please provide this information. So that, we could analyze and provide you solution based on this. 
 
Regards, 
Bharathi. 



DE Deepa April 24, 2019 07:54 AM UTC

Hi,

I am using the following NuGet package:
GalaSoft.MvvmLight


MS Manojkiran Sudhakar Syncfusion Team April 30, 2019 02:00 PM UTC

  
Hi Deepa, 
  
We have validated the reported issue. We have created a custom text view inherited from UITextView. 
  
For this case itself, source property is not getting updated when updating target property value in TouchesBegan method of custom text view. So we have created a bug report for this in Xamarin.iOS github page. Please have a link for reference: 
  
  
We will let you know once we get response from the Xamarin team. 
  
We appreciate your patience until then. 
 
Regard, 
Manoj S 


Loader.
Live Chat Icon For mobile
Up arrow icon