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

              AddCommand = new DelegateCommand((param) =>
            {
              ResultValue = FirstValue + SecondValue;
            });
        }