diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarBackground_And_BarTextColor_Verify.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarBackground_And_BarTextColor_Verify.png new file mode 100644 index 000000000000..e9c987973fbc Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarBackground_And_BarTextColor_Verify.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarBackground_Gradient_Verify.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarBackground_Gradient_Verify.png new file mode 100644 index 000000000000..07a1408e0597 Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarBackground_Gradient_Verify.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarBackground_Solid_Verify.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarBackground_Solid_Verify.png new file mode 100644 index 000000000000..1bee5f3e58b1 Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarBackground_Solid_Verify.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarBackground_With_SelectedTabColor_Verify.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarBackground_With_SelectedTabColor_Verify.png new file mode 100644 index 000000000000..59debb70aaaf Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarBackground_With_SelectedTabColor_Verify.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarBackground_With_UnselectedTabColor_Verify.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarBackground_With_UnselectedTabColor_Verify.png new file mode 100644 index 000000000000..eb31c9b7c2aa Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarBackground_With_UnselectedTabColor_Verify.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarTextColor_And_SelectedTabColor_Verify.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarTextColor_And_SelectedTabColor_Verify.png new file mode 100644 index 000000000000..c004025f2998 Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarTextColor_And_SelectedTabColor_Verify.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarTextColor_And_UnselectedTabColor_Verify.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarTextColor_And_UnselectedTabColor_Verify.png new file mode 100644 index 000000000000..070420b52cd5 Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarTextColor_And_UnselectedTabColor_Verify.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarTextColor_Verify.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarTextColor_Verify.png new file mode 100644 index 000000000000..1c648e209035 Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_BarTextColor_Verify.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_FlowDirection_Verify.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_FlowDirection_Verify.png new file mode 100644 index 000000000000..a6cf5348af91 Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_FlowDirection_Verify.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_IconImageSource_Change_Verify.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_IconImageSource_Change_Verify.png new file mode 100644 index 000000000000..db0f19aaddfd Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_IconImageSource_Change_Verify.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_InitialState_VerifyFunctionalState_1.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_InitialState_VerifyFunctionalState_1.png new file mode 100644 index 000000000000..161f7e316cde Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_InitialState_VerifyFunctionalState_1.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_InitialState_VerifyFunctionalState_2.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_InitialState_VerifyFunctionalState_2.png new file mode 100644 index 000000000000..c9466e5a5200 Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_InitialState_VerifyFunctionalState_2.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_InitialState_VerifyVisualState.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_InitialState_VerifyVisualState.png new file mode 100644 index 000000000000..0035a0e71c35 Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_InitialState_VerifyVisualState.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_InsertTabAt_Verify.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_InsertTabAt_Verify.png new file mode 100644 index 000000000000..7709eb292c55 Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_InsertTabAt_Verify.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_ItemSource_And_SelectedItems_Verify.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_ItemSource_And_SelectedItems_Verify.png new file mode 100644 index 000000000000..7782831a2cca Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_ItemSource_And_SelectedItems_Verify.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_ItemSource_Verify.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_ItemSource_Verify.png new file mode 100644 index 000000000000..26e2fffa274c Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_ItemSource_Verify.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_ItemTemplate_And_ItemSource_Verify.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_ItemTemplate_And_ItemSource_Verify.png new file mode 100644 index 000000000000..709a42305fb4 Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_ItemTemplate_And_ItemSource_Verify.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_ItemTemplate_Verify.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_ItemTemplate_Verify.png new file mode 100644 index 000000000000..5aa74e4e619c Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_ItemTemplate_Verify.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_SelectedAndUnselectedTabColor_Verify_1.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_SelectedAndUnselectedTabColor_Verify_1.png new file mode 100644 index 000000000000..e66fc9a8142f Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_SelectedAndUnselectedTabColor_Verify_1.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_SelectedAndUnselectedTabColor_Verify_2.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_SelectedAndUnselectedTabColor_Verify_2.png new file mode 100644 index 000000000000..a9bd2f15efda Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_SelectedAndUnselectedTabColor_Verify_2.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_SelectedItems_Verify.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_SelectedItems_Verify.png new file mode 100644 index 000000000000..a0def41c1ee5 Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_SelectedItems_Verify.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_SelectedTabColor_Verify.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_SelectedTabColor_Verify.png new file mode 100644 index 000000000000..a3317de354b5 Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_SelectedTabColor_Verify.png differ diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_UnselectedTabColor_Verify.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_UnselectedTabColor_Verify.png new file mode 100644 index 000000000000..683f709e3ecb Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/TabbedPage_UnselectedTabColor_Verify.png differ diff --git a/src/Controls/tests/TestCases.HostApp/CoreViews/CorePageView.cs b/src/Controls/tests/TestCases.HostApp/CoreViews/CorePageView.cs index aee1b1dbd1c5..6d65e9a7f795 100644 --- a/src/Controls/tests/TestCases.HostApp/CoreViews/CorePageView.cs +++ b/src/Controls/tests/TestCases.HostApp/CoreViews/CorePageView.cs @@ -87,6 +87,7 @@ public override string ToString() new GalleryPageFactory(() => new SwitchControlPage(), "Switch Feature Matrix"), new GalleryPageFactory(() => new SwitchCoreGalleryPage(), "Switch Gallery"), new GalleryPageFactory(() => new SwipeViewCoreGalleryPage(), "SwipeView Gallery"), + new GalleryPageFactory(() => new TabbedPageControlPage(), "TabbedPage Feature Matrix"), new GalleryPageFactory(() => new TimePickerControlPage(), "Time Picker Feature Matrix"), new GalleryPageFactory(() => new TimePickerCoreGalleryPage(), "Time Picker Gallery"), new GalleryPageFactory(() => new WebViewCoreGalleryPage(), "WebView Gallery"), diff --git a/src/Controls/tests/TestCases.HostApp/FeatureMatrix/TabbedPage/TabbedPageControlPage.xaml b/src/Controls/tests/TestCases.HostApp/FeatureMatrix/TabbedPage/TabbedPageControlPage.xaml new file mode 100644 index 000000000000..4fdc158aeb87 --- /dev/null +++ b/src/Controls/tests/TestCases.HostApp/FeatureMatrix/TabbedPage/TabbedPageControlPage.xaml @@ -0,0 +1,18 @@ + + \ No newline at end of file diff --git a/src/Controls/tests/TestCases.HostApp/FeatureMatrix/TabbedPage/TabbedPageControlPage.xaml.cs b/src/Controls/tests/TestCases.HostApp/FeatureMatrix/TabbedPage/TabbedPageControlPage.xaml.cs new file mode 100644 index 000000000000..1a4d01c1f966 --- /dev/null +++ b/src/Controls/tests/TestCases.HostApp/FeatureMatrix/TabbedPage/TabbedPageControlPage.xaml.cs @@ -0,0 +1,31 @@ +namespace Maui.Controls.Sample; + +public class TabbedPageControlPage : NavigationPage +{ + private TabbedPageViewModel _viewModel; + public TabbedPageControlPage() + { + _viewModel = new TabbedPageViewModel(); + PushAsync(new TabbedPageControlMainPage(_viewModel)); + } +} +public partial class TabbedPageControlMainPage : TabbedPage +{ + private TabbedPageViewModel _viewModel; + + public TabbedPageControlMainPage(TabbedPageViewModel viewModel) + { + InitializeComponent(); + _viewModel = viewModel; + BindingContext = _viewModel; + var button = new Button { AutomationId = "Options", Text = "Options" }; + button.Clicked += NavigateToOptionsPage_Clicked; + NavigationPage.SetTitleView(this, button); + } + + private async void NavigateToOptionsPage_Clicked(object sender, EventArgs e) + { + BindingContext = _viewModel = new TabbedPageViewModel(); + await Navigation.PushModalAsync(new TabbedPageOptionsPage(_viewModel)); + } +} \ No newline at end of file diff --git a/src/Controls/tests/TestCases.HostApp/FeatureMatrix/TabbedPage/TabbedPageOptionsPage.xaml b/src/Controls/tests/TestCases.HostApp/FeatureMatrix/TabbedPage/TabbedPageOptionsPage.xaml new file mode 100644 index 000000000000..3e9dc6d30b2c --- /dev/null +++ b/src/Controls/tests/TestCases.HostApp/FeatureMatrix/TabbedPage/TabbedPageOptionsPage.xaml @@ -0,0 +1,211 @@ + + + + + + +