diff options
Diffstat (limited to 'Xamarin.Forms.Core/ActivityIndicator.cs')
-rw-r--r-- | Xamarin.Forms.Core/ActivityIndicator.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/ActivityIndicator.cs b/Xamarin.Forms.Core/ActivityIndicator.cs new file mode 100644 index 00000000..3689609a --- /dev/null +++ b/Xamarin.Forms.Core/ActivityIndicator.cs @@ -0,0 +1,24 @@ +using Xamarin.Forms.Platform; + +namespace Xamarin.Forms +{ + [RenderWith(typeof(_ActivityIndicatorRenderer))] + public class ActivityIndicator : View + { + public static readonly BindableProperty IsRunningProperty = BindableProperty.Create("IsRunning", typeof(bool), typeof(ActivityIndicator), default(bool)); + + public static readonly BindableProperty ColorProperty = BindableProperty.Create("Color", typeof(Color), typeof(ActivityIndicator), Color.Default); + + public Color Color + { + get { return (Color)GetValue(ColorProperty); } + set { SetValue(ColorProperty, value); } + } + + public bool IsRunning + { + get { return (bool)GetValue(IsRunningProperty); } + set { SetValue(IsRunningProperty, value); } + } + } +}
\ No newline at end of file |