Completed
Last Updated: 01 Mar 2018 12:15 by ADMIN
ADMIN
Created by: Lance | Technical Support Engineer, Principal
Comments: 1
Category: Entry
Type: Feature Request
1
On Android, when binding the Text value to a view model property, the value doesn't update.

Use the following to reproduce:

// VIEW

<Label Text="RadEntry" />
<telerikInput:RadEntry x:Name="MyRadEntry" 
                       Text="{Binding Username}" 
                       Margin="0,0,0,20"/>
        
<Label Text="Xamarin.Forms Entry" />
<Entry Text="{Binding Username}"/>

// VIEW MODEL

public class ViewModel : NotifyPropertyChangedBase
{
    private string username = "initial";
    private int counter;

    public ViewModel()
    {
        Device.StartTimer(TimeSpan.FromMilliseconds(500), (() =>
        {
            counter++;
                
            Device.BeginInvokeOnMainThread(() =>
            {
                Username = $"{counter}";
            });
                
            return counter < 100;
        }));
    }

    public string Username
    {
        get { return username; }
        set { username = value; OnPropertyChanged();}
    }
}


 Update: Available in R1 2018 SP release.