Skip to content

Instantly share code, notes, and snippets.

@mattregul
Last active October 9, 2015 16:54
Show Gist options
  • Save mattregul/fe557b784946a80a4e3e to your computer and use it in GitHub Desktop.
Save mattregul/fe557b784946a80a4e3e to your computer and use it in GitHub Desktop.

Revisions

  1. mattregul revised this gist Oct 9, 2015. 1 changed file with 19 additions and 19 deletions.
    38 changes: 19 additions & 19 deletions ActivityIndicatorDemoPage.cs
    Original file line number Diff line number Diff line change
    @@ -3,17 +3,17 @@

    namespace FormsGallery
    {
    class ActivityIndicatorDemoPage : ContentPage
    {
    public ActivityIndicatorDemoPage()
    {
    Label header = new Label
    {
    Text = "ActivityIndicator",
    class ActivityIndicatorDemoPage : ContentPage
    {
    public ActivityIndicatorDemoPage()
    {
    Label header = new Label
    {
    Text = "ActivityIndicator",
    FontSize = 40,
    FontAttributes = FontAttributes.Bold,
    HorizontalOptions = LayoutOptions.Center
    };
    HorizontalOptions = LayoutOptions.Center
    };

    ActivityIndicator activityIndicator01 = new ActivityIndicator
    {
    @@ -49,19 +49,19 @@ public ActivityIndicatorDemoPage()
    };


    // Build the page.
    this.Content = new StackLayout
    {
    Children =
    {
    header,
    // Build the page.
    this.Content = new StackLayout
    {
    Children =
    {
    header,
    activityIndicator01,
    activityIndicator02,
    activityIndicator03,
    activityIndicator04,
    activityIndicator05
    }
    };
    }
    }
    }
    };
    }
    }
    }
  2. mattregul created this gist Oct 9, 2015.
    67 changes: 67 additions & 0 deletions ActivityIndicatorDemoPage.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,67 @@
    using System;
    using Xamarin.Forms;

    namespace FormsGallery
    {
    class ActivityIndicatorDemoPage : ContentPage
    {
    public ActivityIndicatorDemoPage()
    {
    Label header = new Label
    {
    Text = "ActivityIndicator",
    FontSize = 40,
    FontAttributes = FontAttributes.Bold,
    HorizontalOptions = LayoutOptions.Center
    };

    ActivityIndicator activityIndicator01 = new ActivityIndicator
    {
    Color = Device.OnPlatform(Color.Black, Color.Default, Color.Default),
    IsRunning = true,
    VerticalOptions = LayoutOptions.CenterAndExpand
    };

    ActivityIndicator activityIndicator02 = new ActivityIndicator
    {
    Color = Color.Red,
    IsRunning = true,
    VerticalOptions = LayoutOptions.CenterAndExpand
    };

    ActivityIndicator activityIndicator03 = new ActivityIndicator
    {
    Color = Color.Blue,
    IsRunning = true,
    VerticalOptions = LayoutOptions.CenterAndExpand
    };
    ActivityIndicator activityIndicator04 = new ActivityIndicator
    {
    Color = Color.Green,
    IsRunning = true,
    VerticalOptions = LayoutOptions.CenterAndExpand
    };
    ActivityIndicator activityIndicator05 = new ActivityIndicator
    {
    Color = Color.Purple,
    IsRunning = true,
    VerticalOptions = LayoutOptions.CenterAndExpand
    };


    // Build the page.
    this.Content = new StackLayout
    {
    Children =
    {
    header,
    activityIndicator01,
    activityIndicator02,
    activityIndicator03,
    activityIndicator04,
    activityIndicator05
    }
    };
    }
    }
    }