using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Xamarin.Forms;

namespace XamFormsDependencyService
{
    public class App : Application
    {
        public App()
        {
            // Główna strona aplikacji

            IPlatform platform = DependencyService.Get<IPlatform>();

            Label label = new Label
            {
                XAlign = TextAlignment.Center,
                Text = platform.GetPlatformDescription()
            };

            MainPage = new ContentPage
            {
                Content = new StackLayout
                {
                    VerticalOptions = LayoutOptions.Center,
                    Children = {
                        label
                    }
                }
            };
        }
    }
}
