-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6326bf7
commit 9b19a92
Showing
24 changed files
with
403 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/Controls/samples/Controls.Sample.UITests/Elements/ActivityIndicatorCoreGalleryPage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using Microsoft.Maui.Controls; | ||
using Microsoft.Maui.Graphics; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
internal class ActivityIndicatorCoreGalleryPage : CoreGalleryPage<ActivityIndicator> | ||
{ | ||
protected override bool SupportsFocus => false; | ||
|
||
protected override void InitializeElement(ActivityIndicator element) | ||
{ | ||
element.IsRunning = true; | ||
} | ||
|
||
protected override void Build() | ||
{ | ||
base.Build(); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/Controls/samples/Controls.Sample.UITests/Elements/BoxViewCoreGalleryPage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Microsoft.Maui.Controls; | ||
using Microsoft.Maui.Graphics; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
internal class BoxViewCoreGalleryPage : CoreGalleryPage<BoxView> | ||
{ | ||
protected override bool SupportsFocus => false; | ||
|
||
protected override void InitializeElement(BoxView element) | ||
{ | ||
element.HeightRequest = 200; | ||
|
||
element.Color = Colors.Purple; | ||
} | ||
|
||
protected override void Build() | ||
{ | ||
base.Build(); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
src/Controls/samples/Controls.Sample.UITests/Elements/CollectionViewCoreGalleryPage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
internal class CollectionViewCoreGalleryPage : CoreGalleryPage<CollectionView> | ||
{ | ||
protected override void InitializeElement(CollectionView element) | ||
{ | ||
base.InitializeElement(element); | ||
|
||
var items = new List<string>(); | ||
|
||
for (int n = 0; n < 1000; n++) | ||
{ | ||
items.Add(DateTime.Now.AddDays(n).ToString("D")); | ||
} | ||
|
||
element.ItemsSource = items; | ||
|
||
element.HeightRequest = 250; | ||
|
||
element.ItemsLayout = LinearItemsLayout.Vertical; | ||
} | ||
|
||
protected override void Build() | ||
{ | ||
base.Build(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/Controls/samples/Controls.Sample.UITests/Elements/DatePickerCoreGalleryPage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
internal class DatePickerCoreGalleryPage : CoreGalleryPage<DatePicker> | ||
{ | ||
protected override bool SupportsTapGestureRecognizer => false; | ||
|
||
protected override void InitializeElement(DatePicker element) | ||
{ | ||
} | ||
|
||
protected override void Build() | ||
{ | ||
base.Build(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/Controls/samples/Controls.Sample.UITests/Elements/EntryCoreGalleryPage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
internal class EntryCoreGalleryPage : CoreGalleryPage<Entry> | ||
{ | ||
protected override bool SupportsTapGestureRecognizer => false; | ||
|
||
protected override void InitializeElement(Entry element) | ||
{ | ||
} | ||
|
||
protected override void Build() | ||
{ | ||
base.Build(); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/Controls/samples/Controls.Sample.UITests/Elements/FrameCoreGalleryPage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Microsoft.Maui.Controls; | ||
using Microsoft.Maui.Graphics; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
internal class FrameCoreGalleryPage : CoreGalleryPage<Frame> | ||
{ | ||
protected override bool SupportsFocus => false; | ||
|
||
protected override void InitializeElement(Frame element) | ||
{ | ||
element.HeightRequest = 50; | ||
element.WidthRequest = 100; | ||
element.BorderColor = Colors.Olive; | ||
} | ||
|
||
protected override void Build() | ||
{ | ||
base.Build(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/Controls/samples/Controls.Sample.UITests/Elements/ImageButtonCoreGalleryPage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
internal class ImageButtonCoreGalleryPage : CoreGalleryPage<ImageButton> | ||
{ | ||
protected override bool SupportsTapGestureRecognizer => false; | ||
|
||
protected override void InitializeElement(ImageButton element) | ||
{ | ||
element.Source = "small_dotnet_bot.png"; | ||
} | ||
|
||
protected override void Build() | ||
{ | ||
base.Build(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/Controls/samples/Controls.Sample.UITests/Elements/ImageCoreGalleryPage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
internal class ImageCoreGalleryPage : CoreGalleryPage<Image> | ||
{ | ||
protected override bool SupportsFocus => false; | ||
|
||
protected override void InitializeElement(Image element) | ||
{ | ||
element.Source = "small_dotnet_bot.png"; | ||
} | ||
|
||
protected override void Build() | ||
{ | ||
base.Build(); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/Controls/samples/Controls.Sample.UITests/Elements/ListViewCoreGalleryPage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
internal class ListViewCoreGalleryPage : CoreGalleryPage<ListView> | ||
{ | ||
protected override void InitializeElement(ListView element) | ||
{ | ||
base.InitializeElement(element); | ||
|
||
var items = new List<string>(); | ||
|
||
for (int n = 0; n < 1000; n++) | ||
{ | ||
items.Add(DateTime.Now.AddDays(n).ToString("D")); | ||
} | ||
|
||
element.ItemsSource = items; | ||
|
||
element.HeightRequest = 250; | ||
} | ||
|
||
protected override void Build() | ||
{ | ||
base.Build(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/Controls/samples/Controls.Sample.UITests/Elements/PickerCoreGalleryPage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
internal class PickerCoreGalleryPage : CoreGalleryPage<Picker> | ||
{ | ||
protected override bool SupportsTapGestureRecognizer => false; | ||
|
||
protected override void InitializeElement(Picker element) | ||
{ | ||
} | ||
|
||
protected override void Build() | ||
{ | ||
base.Build(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/Controls/samples/Controls.Sample.UITests/Elements/ProgressBarCoreGalleryPage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
internal class ProgressBarCoreGalleryPage : CoreGalleryPage<ProgressBar> | ||
{ | ||
protected override bool SupportsFocus => false; | ||
|
||
protected override void InitializeElement(ProgressBar element) | ||
{ | ||
element.Progress = 1; | ||
} | ||
|
||
protected override void Build() | ||
{ | ||
base.Build(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/Controls/samples/Controls.Sample.UITests/Elements/SearchBarCoreGalleryPage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
internal class SearchBarCoreGalleryPage : CoreGalleryPage<SearchBar> | ||
{ | ||
protected override bool SupportsTapGestureRecognizer => true; | ||
|
||
protected override void InitializeElement(SearchBar element) | ||
{ | ||
} | ||
|
||
protected override void Build() | ||
{ | ||
base.Build(); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/Controls/samples/Controls.Sample.UITests/Elements/SliderCoreGalleryPage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
internal class SliderCoreGalleryPage : CoreGalleryPage<Slider> | ||
{ | ||
protected override bool SupportsFocus => false; | ||
|
||
protected override bool SupportsTapGestureRecognizer => false; | ||
|
||
protected override void InitializeElement(Slider element) | ||
{ | ||
} | ||
|
||
protected override void Build() | ||
{ | ||
base.Build(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/Controls/samples/Controls.Sample.UITests/Elements/StepperCoreGalleryPage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
internal class StepperCoreGalleryPage : CoreGalleryPage<Stepper> | ||
{ | ||
protected override bool SupportsFocus => false; | ||
protected override bool SupportsTapGestureRecognizer => false; | ||
|
||
protected override void InitializeElement(Stepper element) | ||
{ | ||
} | ||
|
||
protected override void Build() | ||
{ | ||
base.Build(); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/Controls/samples/Controls.Sample.UITests/Elements/SwitchCoreGalleryPage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
internal class SwitchCoreGalleryPage : CoreGalleryPage<Switch> | ||
{ | ||
protected override bool SupportsFocus => false; | ||
|
||
protected override bool SupportsTapGestureRecognizer => false; | ||
|
||
protected override void InitializeElement(Switch element) | ||
{ | ||
} | ||
|
||
protected override void Build() | ||
{ | ||
base.Build(); | ||
} | ||
} |
Oops, something went wrong.