diff options
Diffstat (limited to 'Xamarin.Forms.Controls/CoreGalleryPages/ProgressBarCoreGalleryPage.cs')
-rw-r--r-- | Xamarin.Forms.Controls/CoreGalleryPages/ProgressBarCoreGalleryPage.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls/CoreGalleryPages/ProgressBarCoreGalleryPage.cs b/Xamarin.Forms.Controls/CoreGalleryPages/ProgressBarCoreGalleryPage.cs new file mode 100644 index 00000000..1cc51ae8 --- /dev/null +++ b/Xamarin.Forms.Controls/CoreGalleryPages/ProgressBarCoreGalleryPage.cs @@ -0,0 +1,27 @@ +using Xamarin.Forms.CustomAttributes; + +namespace Xamarin.Forms.Controls +{ + internal class ProgressBarCoreGalleryPage : CoreGalleryPage<ProgressBar> + { + protected override bool SupportsFocus + { + get { return false; } + } + + protected override void InitializeElement (ProgressBar element) + { + base.InitializeElement (element); + + element.Progress = 1; + } + + protected override void Build (StackLayout stackLayout) + { + base.Build (stackLayout); + + var progressContainer = new ViewContainer<ProgressBar> (Test.ProgressBar.Progress, new ProgressBar { Progress = 0.5 }); + Add (progressContainer); + } + } +}
\ No newline at end of file |