Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Binding 1 class have multi property TWOWAY ??

$
0
0

Model:
public class UserInfo
{
public int ID { get; set; }
public string FullName { get; set; }
public string Birhtday { get; set; }
public string IdCard { get; set; }
public string Address { get; set; }
public string Roles { get; set; }
}
View:


Viewmodel:
private static UserInfo _info { get; set; }
public UserInfo Info
{
get { return _info; }
set
{
if (_info != value)
{
_info = value;
}
}
}

I can Bind Info to View.
When i Input Text at View, It not Binding to Viewmodel. However, if i don't use property inside UserInfo. I instance that property at Viewmodel , i can binding Twoway.
Have any way to handle this issue ???


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>