using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using WunderlistApp.Model; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace WunderlistApp.View { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class MainPage : TabbedPage { ObservableCollection ObservedFoldersList; ObservableCollection ObservedListsList; public MainPage() { GeneratePage(); InitializeComponent(); // Set different colors :D this.BarBackgroundColor = Color.FromHex("#5b7a59"); this.BarTextColor = Color.FromHex("#ffffff"); this.BackgroundColor = Color.FromHex("#f7f7f7"); } private async Task GeneratePage() { List folders = await ApiManager.GetFoldersAsync(); ObservedFoldersList = new ObservableCollection(folders); // TEMPLATE // Make a template for the view var template = new DataTemplate(typeof(TextCell)); // Create a text-field (same as