Skip to content

Instantly share code, notes, and snippets.

@almirvuk
Created November 21, 2017 21:26

Revisions

  1. almirvuk created this gist Nov 21, 2017.
    22 changes: 22 additions & 0 deletions SpeakersListPageViewModel.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    using System;
    using System.Collections.Generic;
    using System.Collections.ObjectModel;
    using System.Text;
    using XF.CustomControl.Demo.Models;

    namespace XF.CustomControl.Demo.ViewModels {

    public class SpeakersListPageViewModel {

    public ObservableCollection<Speaker> AllSpeakers { get; set; }

    public SpeakersListPageViewModel() {

    AllSpeakers = new ObservableCollection<Speaker>();

    // Some dummy data
    AllSpeakers.Add(new Speaker() { SpeakerId = 1, FullName = "Almir Vuk", Position = ".NET Developer", PhotoUrl = "https://avatars3.githubusercontent.com/u/15986629" });
    AllSpeakers.Add(new Speaker() { SpeakerId = 2, FullName = "Mario Rozic", Position = "MEAN Developer", PhotoUrl = "https://avatars2.githubusercontent.com/u/15254942" });
    }
    }
    }