Permalink
Switch branches/tags
Nothing to show
Find file Copy path
daad090 Mar 27, 2018
1 contributor

Users who have contributed to this file

56 lines (45 sloc) 1.22 KB
using System;
using Xamarin.Forms;
namespace UniLink
{
public class App : Application
{
private Label _label;
public App()
{
_label = new Label()
{
HorizontalTextAlignment = TextAlignment.Center,
Text = "Welcome to Xamarin Forms!"
};
// The root page of your application
var content = new ContentPage
{
Title = "UniLink",
Content = new StackLayout
{
VerticalOptions = LayoutOptions.Center,
Children = { _label }
}
};
MainPage = new NavigationPage(content);
}
protected override void OnStart()
{
// Handle when your app starts
}
protected override void OnSleep()
{
// Handle when your app sleeps
}
protected override void OnResume()
{
// Handle when your app resumes
}
protected override void OnAppLinkRequestReceived(Uri uri)
{
_label.Text = "Xamarin Forms opened through App Link!";
base.OnAppLinkRequestReceived(uri);
}
}
}