Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146652 | Aug 12,2019 09:09 PM UTC | Aug 15,2019 12:16 PM UTC | Xamarin.Forms | 5 |
![]() |
Tags: SfDataForm |
public class DataFormViewModel
{
private DataFormModel _item;
public DataFormModel Item
{
get { return _item; }
set
{
_item = value;
}
}
public void SomeMethod()
{
this.Item.Number = "123456";
}
public DataFormViewModel()
{
this._item = new DataFormModel();
this.SomeMethod();
}
} |
[XAML]
<dataForm:SfDataForm Grid.Row="1" x:Name="dataForm" DataObject="{Binding Item}" NotifyPropertyChanges="True"/> |
[C#]
public DataFormModel Item
{
get { return _item; }
set
{
_item = value;
this.RaisePropertyChanged("Item");
}
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.