September 2016
Intermediate to advanced
516 pages
10h 22m
English
Now we move on to the last view-model in our application. Add a new file called StockItemDetailsPageViewModel to our ViewModels folder in the Stocklist.Portable project.
Let's start by implementing the private properties:
#region Private Properties
private readonly IStocklistWebServiceController _stocklistWebServiceController;
private int _id;
private string _name;
private string _category;
private decimal _price;
private bool _inProgress;
#endregion
You should be able to add the public properties yourself. Here is the first to get you started:
public int Id
{
get
{
return _id;
}
set
{
if (value.Equals(_id))
{
return;
}
_id = value;
OnPropertyChanged("Id");
}
}
Now we need to add the LoadAsync function, which ...
Read now
Unlock full access