ContinuousSample.cs 980 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System;
  2. using Xamarin.Forms;
  3. namespace ContinuousSample
  4. {
  5. public class CustomPage : ContentPage
  6. {
  7. public CustomPage()
  8. {
  9. var label = new Label
  10. {
  11. Text = "Continuous Coding Sample. Awesome!",
  12. TextColor = Color.Red,
  13. HorizontalOptions = LayoutOptions.Center,
  14. VerticalOptions = LayoutOptions.End
  15. };
  16. Content = label;
  17. }
  18. }
  19. public class App : Application
  20. {
  21. public App ()
  22. {
  23. // The root page of your application
  24. MainPage = new ContentPage {
  25. Content = new StackLayout {
  26. VerticalOptions = LayoutOptions.Center,
  27. Children = {
  28. new Label {
  29. XAlign = TextAlignment.Center,
  30. Text = "Welcome to Xamarin Forms using Continuous!"
  31. }
  32. }
  33. }
  34. };
  35. }
  36. protected override void OnStart ()
  37. {
  38. // Handle when your app starts
  39. }
  40. protected override void OnSleep ()
  41. {
  42. // Handle when your app sleeps
  43. }
  44. protected override void OnResume ()
  45. {
  46. // Handle when your app resumes
  47. }
  48. }
  49. }