A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
1.0 KiB

// -----------------------------------------------------------------------
// <copyright file="UserRepositoriesViewModel.cs" company="Steven Kirk">
// Copyright 2015 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Xaml.Base.UnitTest.SampleModel
{
using System.Collections.Generic;
using System.Threading.Tasks;
using GitHubClient.ViewModels;
using ReactiveUI;
public class UserRepositoriesViewModel : ReactiveObject
{
private IReadOnlyList<Repository> repositories;
public async Task Load(string username)
{
this.Repositories = await new Task<IReadOnlyList<Repository>>(() => new List<Repository> { new Repository("Blah"), new Repository("Bleh") });
}
public IReadOnlyList<Repository> Repositories
{
get { return this.repositories; }
private set { this.RaiseAndSetIfChanged(ref this.repositories, value); }
}
}
}