Updating the MainPageViewModel
Now that we have rebuilt our MainPage
, let's make some small changes to the MainPageViewModel
. Since we replaced the label bindings with static values, we remove the following variables, DescriptionMessage
, ExitTitle
, and LocationTitle
.
Now we should have the following private
properties:
#region Private Properties private readonly IMethods _methods; private ICommand _stocklistCommand; private ICommand _exitCommand; #endregion
Now simply update LocationCommand
to the following:
public ICommand StocklistCommand { get { return stocklistCommand; } set { if (value.Equals(stocklistCommand)) { return; } _stocklistCommand =...