Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. using System;
  2. using Xamarin.Forms;
  3. using Xamarin.Forms.Xaml;
  4. using GenTree.Views;
  5. using System.Threading.Tasks;
  6.  
  7. [assembly: XamlCompilation (XamlCompilationOptions.Compile)]
  8. namespace GenTree
  9. {
  10. public partial class App : Application
  11. {
  12. public App ()
  13. {
  14. InitializeComponent();
  15.  
  16. MainPage = new NavigationPage(new MainPage());
  17. MainPage.Navigation.PushAsync(new Intro());
  18. Task.Delay(5000).Wait();
  19. MainPage.Navigation.PopAsync();
  20.  
  21. MainPage.BackgroundColor = Color.LightSeaGreen;
  22. MainPage.Title = "GenTree";
  23. MainPage.Icon = "logo.png";
  24. }
  25.  
  26. protected override void OnStart ()
  27. {
  28. // Handle when your app starts
  29. }
  30.  
  31. protected override void OnSleep ()
  32. {
  33. // Handle when your app sleeps
  34. }
  35.  
  36. protected override void OnResume ()
  37. {
  38. // Handle when your app resumes
  39. }
  40. }
  41. }
  42.  
  43. <?xml version="1.0" encoding="utf-8" ?>
  44. <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
  45. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  46. xmlns:forms="clr-namespace:Lottie.Forms;assembly=Lottie.Forms"
  47. x:Class="GenTree.Views.Intro">
  48. <ContentPage.Content>
  49. <StackLayout>
  50. <forms:AnimationView
  51. x:Name="animationViewProfile"
  52. Animation="user_connection.json"
  53. Loop="True"
  54. AutoPlay="True"
  55. HeightRequest="150"
  56. WidthRequest="150"/>
  57.  
  58. <Label Text="GenTree" TextColor="Blue" FontSize="Large"
  59. VerticalOptions="CenterAndExpand"
  60. HorizontalOptions="CenterAndExpand" />
  61. </StackLayout>
  62. </ContentPage.Content>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement