public FeedViewModel() { RefreshCommand = new DelegateCommand(async arg => { var items = await DataManager.Instance.UpdateFeed("http://dotnetautor.de/GetRssFeed"); Items = new ObservableCollection<FeedItem>(items); }); }
public CalculatorViewModel() { FirstValue = 0; SecondValue = 0; ResultValue = 0; AddCommand = new DelegateCommand((param) => { ResultValue = FirstValue + SecondValue; }); }