diff --git a/maui-island.sln b/maui-island.sln index bdc920fd..1fd02dd3 100644 --- a/maui-island.sln +++ b/maui-island.sln @@ -23,7 +23,15 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MAUIsland.GitHubFeatures.In EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MAUIsland", "src\Presentations\Windows\MAUIsland.csproj", "{72B83E80-9D22-4A44-AB91-253A616A9D9C}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAUIsland.Core", "src\Core\MAUIsland.Core\MAUIsland.Core.csproj", "{A9F55C31-8BED-4021-8F1B-1F5C7D4B2265}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MAUIsland.Core", "src\Core\MAUIsland.Core\MAUIsland.Core.csproj", "{A9F55C31-8BED-4021-8F1B-1F5C7D4B2265}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "LocalDbFeatures", "LocalDbFeatures", "{44F9EA87-2C75-4685-B49F-8ECF3CE577CA}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "GitHub", "GitHub", "{966A4C62-0966-4106-A407-A65F27A07986}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAUIsland.Features.LocalDbFeatures.GitHub", "src\Features\LocalDbFeatures\GitHub\MAUIsland.Features.LocalDbFeatures.GitHub\MAUIsland.Features.LocalDbFeatures.GitHub.csproj", "{9C9F69E9-00F8-459F-98CB-100F1A8B8FE4}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MAUIsland.Features.LocalDbFeatures", "src\Features\LocalDbFeatures\MAUIsland.Features.LocalDbFeatures\MAUIsland.Features.LocalDbFeatures.csproj", "{97DE63B5-31C0-4C62-843D-43FB6D23EBB1}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -48,6 +56,14 @@ Global {A9F55C31-8BED-4021-8F1B-1F5C7D4B2265}.Debug|Any CPU.Build.0 = Debug|Any CPU {A9F55C31-8BED-4021-8F1B-1F5C7D4B2265}.Release|Any CPU.ActiveCfg = Release|Any CPU {A9F55C31-8BED-4021-8F1B-1F5C7D4B2265}.Release|Any CPU.Build.0 = Release|Any CPU + {9C9F69E9-00F8-459F-98CB-100F1A8B8FE4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9C9F69E9-00F8-459F-98CB-100F1A8B8FE4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9C9F69E9-00F8-459F-98CB-100F1A8B8FE4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9C9F69E9-00F8-459F-98CB-100F1A8B8FE4}.Release|Any CPU.Build.0 = Release|Any CPU + {97DE63B5-31C0-4C62-843D-43FB6D23EBB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {97DE63B5-31C0-4C62-843D-43FB6D23EBB1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {97DE63B5-31C0-4C62-843D-43FB6D23EBB1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {97DE63B5-31C0-4C62-843D-43FB6D23EBB1}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -61,6 +77,10 @@ Global {6F539157-0DE3-407A-8769-EB997EB7AE59} = {23A84AFF-0047-4364-9351-E4521D52A26B} {72B83E80-9D22-4A44-AB91-253A616A9D9C} = {2FD579F3-6496-437C-956B-E6F62B2D2A5A} {A9F55C31-8BED-4021-8F1B-1F5C7D4B2265} = {36CB9EBB-A677-4AF0-A0A9-BDEBDE60F123} + {44F9EA87-2C75-4685-B49F-8ECF3CE577CA} = {73E66A66-7BCD-44FE-949C-BD42C274B840} + {966A4C62-0966-4106-A407-A65F27A07986} = {44F9EA87-2C75-4685-B49F-8ECF3CE577CA} + {9C9F69E9-00F8-459F-98CB-100F1A8B8FE4} = {966A4C62-0966-4106-A407-A65F27A07986} + {97DE63B5-31C0-4C62-843D-43FB6D23EBB1} = {44F9EA87-2C75-4685-B49F-8ECF3CE577CA} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {61F7FB11-1E47-470C-91E2-47F8143E1572} diff --git a/src/Core/MAUIsland.Core/MAUIsland.Core.csproj b/src/Core/MAUIsland.Core/MAUIsland.Core.csproj index 7689ce36..856903b2 100644 --- a/src/Core/MAUIsland.Core/MAUIsland.Core.csproj +++ b/src/Core/MAUIsland.Core/MAUIsland.Core.csproj @@ -38,6 +38,7 @@ + diff --git a/src/Core/MAUIsland.Core/ServiceExtension.cs b/src/Core/MAUIsland.Core/ServiceExtension.cs index 9b9b631c..bf5f501a 100644 --- a/src/Core/MAUIsland.Core/ServiceExtension.cs +++ b/src/Core/MAUIsland.Core/ServiceExtension.cs @@ -1,5 +1,8 @@ using CommunityToolkit.Maui; using CommunityToolkit.Maui.Core; +using Material.Components.Maui.Extensions; +using MAUIsland.Features.LocalDbFeatures; +using MAUIsland.Features.LocalDbFeatures.GitHub; using MAUIsland.GitHubFeatures; using SkiaSharp.Views.Maui.Controls.Hosting; using Xe.AcrylicView; @@ -10,13 +13,29 @@ public static class ServicesExtension { public static MauiAppBuilder InitCore(this MauiAppBuilder builder) { + builder.UseAcrylicView(); builder.UseSkiaSharp(true); + builder.UseMaterialComponents(); builder.UseMauiCommunityToolkit(); builder.UseMauiCommunityToolkitCore(); builder.UseMauiCommunityToolkitMediaElement(); - builder.Services.RegisterLogicProvider(); + + + builder.Services.RegisterGitHubFeatures(); + + + + #region [ LocalDb ] + + var DbName = "mauisland.db"; + var localDbPath = Path.Combine(FileSystem.AppDataDirectory, DbName); + builder.Services.RegisterLocalDbFeatures(localDbPath); + builder.Services.RegisterLocalDbFeaturesGitHub(); + #endregion + + return builder; } } \ No newline at end of file diff --git a/src/Features/Gallery/Pages/BuiltIn/Controls/ProgressBar/ProgressBarPage.xaml b/src/Features/Gallery/Pages/BuiltIn/Controls/ProgressBar/ProgressBarPage.xaml deleted file mode 100644 index 5cb2105f..00000000 --- a/src/Features/Gallery/Pages/BuiltIn/Controls/ProgressBar/ProgressBarPage.xaml +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - - - - - The .NET Multi-platform App UI (.NET MAUI) ProgressBar indicates to users that the app is progressing through a lengthy activity. The progress bar is a horizontal bar that is filled to a percentage represented by a double value. - - - ProgressBar defines two properties: - - - - These properties are backed by BindableProperty objects, which means that they can be targets of data bindings, and styled. - - - - - Progress is a double value that represents the current progress as a value from 0 to 1. Progress values less than 0 will be clamped to 0, values greater than 1 will be clamped to 1. The default value of this property is 0. ]]> - - - ProgressColor is a Color values that defines the color of the ProgressBar. ]]> - - - - - - ProgressTo method animates the ProgressBar from its current Progress value to a provided value over time. The method accepts a double progress value, a uint duration in milliseconds, an Easing enum value and returns a Task. The following example demonstrates how to animate a ProgressBar: ]]> - - - - - - - - - - - - - - - - -