Building the user interface

It's now time to build the user interface screens; we are going to start by building the view-models. Inside the FileStorage.Portable project, add a new folder called ViewModels, add a new file called MainPageViewModel.cs, and implement the following:

public class MainPageViewModel : ViewModelBase
  {
     #region Private Properties
     private string _descriptionMessage = "Welcome to the Filing Room";
     private string _FilesTitle = "Files";
     private string _exitTitle = "Exit";
     private ICommand _locationCommand;
     private ICommand _exitCommand;
     private ISQLiteStorage _storage;
     #endregion
  }

We include the ISQLiteStorage object in this view-model because we will be creating the database tables when this view-model is created. Don't forget ...

Get Xamarin Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.