diff --git a/samples/ControlGallery/AppShell.razor b/samples/ControlGallery/AppShell.razor index e6cc6cde..7510840c 100644 --- a/samples/ControlGallery/AppShell.razor +++ b/samples/ControlGallery/AppShell.razor @@ -1,66 +1,49 @@ @using ControlGallery.Views +@using ControlGallery.Views.Collections +@using ControlGallery.Views.Collections.CollectionView +@using ControlGallery.Views.Controls +@using ControlGallery.Views.EditText +@using ControlGallery.Views.InitiateCommands +@using ControlGallery.Views.Layouts +@using ControlGallery.Views.PresentData +@using ControlGallery.Views.SetValues +@using ControlGallery.Views.Shell - - - - - - - - - - - - - - - - - - - - - @for (int i = 0; i < tabCount; i++) - { - var currentIndex = i; - - } - - - @for (int i = 0; i < menuItemCount; i++) - { - - } - - -@code { - int tabCount = 1; - int menuItemCount = 2; - - void AddTab() - { - tabCount++; - } - - void RemoveTab() - { - if (tabCount > 1) - { - tabCount--; - } - } - - void AddMenuItem() - { - menuItemCount++; - } - - void RemoveMenuItem() - { - if (menuItemCount > 0) - { - menuItemCount--; - } - } -} + @*Present data*@ + + + + @*Initiate commands*@ + + + + @*Set values*@ + + + + + @*Edit text*@ + + + + @*Display collections*@ + + + + + + + + + @*Layouts*@ + + + + + @*Shell*@ + + + + + \ No newline at end of file diff --git a/samples/ControlGallery/Views/CollectionViewPlayground.razor b/samples/ControlGallery/Views/CollectionViewPlayground.razor deleted file mode 100644 index 1475b8fa..00000000 --- a/samples/ControlGallery/Views/CollectionViewPlayground.razor +++ /dev/null @@ -1,18 +0,0 @@ -@using ControlGallery.Views.CollectionView - -@inject ShellNavigationManager NavigationManager - -@page "/collectionviewplayground" - - - - - + + + + @for (int i = 0; i < tabCount; i++) + { + var currentIndex = i; + + } + + +@for (int i = 0; i < menuItemCount; i++) +{ + +} + +@code { + int tabCount = 1; + int menuItemCount = 0; + + void AddTab() + { + tabCount++; + } + + void RemoveTab() + { + if (tabCount > 1) + { + tabCount--; + } + } + + void AddMenuItem() + { + menuItemCount++; + } + + void RemoveMenuItem() + { + if (menuItemCount > 0) + { + menuItemCount--; + } + } +} \ No newline at end of file diff --git a/samples/ControlGallery/Views/NavigationSource.razor b/samples/ControlGallery/Views/Shell/ShellNavigationPage.razor similarity index 98% rename from samples/ControlGallery/Views/NavigationSource.razor rename to samples/ControlGallery/Views/Shell/ShellNavigationPage.razor index b5e67477..7fd3b6fa 100644 --- a/samples/ControlGallery/Views/NavigationSource.razor +++ b/samples/ControlGallery/Views/Shell/ShellNavigationPage.razor @@ -2,7 +2,7 @@ @using ControlGallery.Models @inject ShellNavigationManager NavigationManager - + diff --git a/samples/ControlGallery/Views/ShellPropertiesPlayground.razor b/samples/ControlGallery/Views/Shell/ShellPropertiesPage.razor similarity index 85% rename from samples/ControlGallery/Views/ShellPropertiesPlayground.razor rename to samples/ControlGallery/Views/Shell/ShellPropertiesPage.razor index 66e9c28c..79a6a67e 100644 --- a/samples/ControlGallery/Views/ShellPropertiesPlayground.razor +++ b/samples/ControlGallery/Views/Shell/ShellPropertiesPage.razor @@ -8,13 +8,6 @@ - - - - - - - diff --git a/samples/ControlGallery/ShellTab.razor b/samples/ControlGallery/Views/Shell/ShellTab.razor similarity index 100% rename from samples/ControlGallery/ShellTab.razor rename to samples/ControlGallery/Views/Shell/ShellTab.razor diff --git a/samples/ControlGallery/Views/SkiaCanvasDemo.razor b/samples/ControlGallery/Views/SkiaCanvasPage.razor similarity index 100% rename from samples/ControlGallery/Views/SkiaCanvasDemo.razor rename to samples/ControlGallery/Views/SkiaCanvasPage.razor diff --git a/samples/ControlGallery/Views/SkiaCanvasDemo.razor.cs b/samples/ControlGallery/Views/SkiaCanvasPage.razor.cs similarity index 98% rename from samples/ControlGallery/Views/SkiaCanvasDemo.razor.cs rename to samples/ControlGallery/Views/SkiaCanvasPage.razor.cs index f98e6284..bc3e5240 100644 --- a/samples/ControlGallery/Views/SkiaCanvasDemo.razor.cs +++ b/samples/ControlGallery/Views/SkiaCanvasPage.razor.cs @@ -4,11 +4,10 @@ using BlazorBindings.Maui.SkiaSharp; using SkiaSharp; using SkiaSharp.Views.Maui; -using System; namespace ControlGallery.Views { - public partial class SkiaCanvasDemo + public partial class SkiaCanvasPage { public SKCanvasView CanvasView { get; set; } public SKCanvasView CanvasView2 { get; set; } diff --git a/samples/ControlGallery/Views/SkiaPlayground.razor b/samples/ControlGallery/Views/SkiaPlayground.razor deleted file mode 100644 index cb4cb572..00000000 --- a/samples/ControlGallery/Views/SkiaPlayground.razor +++ /dev/null @@ -1,13 +0,0 @@ -@page "/skia" -@inject ShellNavigationManager NavigationManager - - - - - - - -@code -{ - async Task NavigateToSkiaCanvas() => await NavigationManager.NavigateToAsync("/skia/canvas"); -}