mirror of https://github.com/abpframework/abp.git
committed by
GitHub
52 changed files with 1492 additions and 1 deletions
@ -0,0 +1,27 @@ |
|||||
|
# MAUI Application Startup Template |
||||
|
|
||||
|
This template is used to create a minimalist MAUI application project. |
||||
|
|
||||
|
## How to Start With? |
||||
|
|
||||
|
First, install the [ABP CLI](../CLI.md) if you haven't installed before: |
||||
|
|
||||
|
````bash |
||||
|
dotnet tool install -g Volo.Abp.Cli |
||||
|
```` |
||||
|
|
||||
|
Then use the `abp new` command in an empty folder to create a new solution: |
||||
|
|
||||
|
````bash |
||||
|
abp new Acme.MyMauiApp -t maui |
||||
|
```` |
||||
|
|
||||
|
`Acme.MyMauiApp` is the solution name, like *YourCompany.YourProduct*. You can use single level, two-levels or three-levels naming. |
||||
|
|
||||
|
## Solution Structure |
||||
|
|
||||
|
After you use the above command to create a solution, you will have a solution like shown below: |
||||
|
|
||||
|
 |
||||
|
|
||||
|
* `HelloWorldService` is a sample service that implements the `ITransientDependency` interface to register this service to the [dependency injection](../Dependency-Injection.md) system. |
||||
|
After Width: | Height: | Size: 40 KiB |
@ -0,0 +1,27 @@ |
|||||
|
# MAUI应用程序启动模板 |
||||
|
|
||||
|
此模板用于创建一个最小的依赖关系的ABP MAUI应用程序项目. |
||||
|
|
||||
|
## 如何开始? |
||||
|
|
||||
|
首先,如果你没有安装[ABP CLI](../CLI.md),请先安装它: |
||||
|
|
||||
|
````bash |
||||
|
dotnet tool install -g Volo.Abp.Cli |
||||
|
```` |
||||
|
|
||||
|
在一个空文件夹使用 `abp new` 命令创建新解决方案: |
||||
|
|
||||
|
````bash |
||||
|
abp new Acme.MyMauiApp -t maui |
||||
|
```` |
||||
|
|
||||
|
`Acme.MyMauiApp` 是解决方案的名称, 如*YourCompany.YourProduct*. 你可以使用单级或多级名称. |
||||
|
|
||||
|
## 解决方案结构 |
||||
|
|
||||
|
使用以上命令创建解决方案后,你会得到如下所示的解决方案: |
||||
|
|
||||
|
 |
||||
|
|
||||
|
* `HelloWorldService` 是一个实现了 `ITransientDependency` 接口的示例服务. 它会自动注册到[依赖注入](../Dependency-Injection.md)系统. |
||||
|
After Width: | Height: | Size: 40 KiB |
@ -0,0 +1,14 @@ |
|||||
|
using System; |
||||
|
using System.Linq; |
||||
|
|
||||
|
namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps; |
||||
|
|
||||
|
public class ChangeApplicationIdGuidStep: ProjectBuildPipelineStep |
||||
|
{ |
||||
|
public override void Execute(ProjectBuildContext context) |
||||
|
{ |
||||
|
var projectFile = context.Files.FirstOrDefault(f => f.Name.EndsWith("MyCompanyName.MyProjectName.csproj")); |
||||
|
|
||||
|
projectFile?.SetContent(projectFile.Content.Replace("27317750-B571-4690-B433-B358B2480E01", Guid.NewGuid().ToString())); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,15 @@ |
|||||
|
namespace Volo.Abp.Cli.ProjectBuilding.Templates.Maui; |
||||
|
|
||||
|
public class MauiTemplate : MauiTemplateBase |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// "maui".
|
||||
|
/// </summary>
|
||||
|
public const string TemplateName = "maui"; |
||||
|
|
||||
|
public MauiTemplate() |
||||
|
: base(TemplateName) |
||||
|
{ |
||||
|
DocumentUrl = CliConsts.DocsLink + "/en/abp/latest/Startup-Templates/MAUI"; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,24 @@ |
|||||
|
using System.Collections.Generic; |
||||
|
using JetBrains.Annotations; |
||||
|
using Volo.Abp.Cli.ProjectBuilding.Building; |
||||
|
using Volo.Abp.Cli.ProjectBuilding.Building.Steps; |
||||
|
|
||||
|
namespace Volo.Abp.Cli.ProjectBuilding.Templates.Maui; |
||||
|
|
||||
|
public class MauiTemplateBase: TemplateInfo |
||||
|
{ |
||||
|
protected MauiTemplateBase([NotNull] string name) : |
||||
|
base(name) |
||||
|
{ |
||||
|
} |
||||
|
|
||||
|
public override IEnumerable<ProjectBuildPipelineStep> GetCustomSteps(ProjectBuildContext context) |
||||
|
{ |
||||
|
var steps = new List<ProjectBuildPipelineStep> |
||||
|
{ |
||||
|
new ChangeApplicationIdGuidStep() |
||||
|
}; |
||||
|
|
||||
|
return steps; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1 @@ |
|||||
|
**/wwwroot/libs/** linguist-vendored |
||||
@ -0,0 +1,255 @@ |
|||||
|
## Ignore Visual Studio temporary files, build results, and |
||||
|
## files generated by popular Visual Studio add-ons. |
||||
|
|
||||
|
# User-specific files |
||||
|
*.suo |
||||
|
*.user |
||||
|
*.userosscache |
||||
|
*.sln.docstates |
||||
|
|
||||
|
# User-specific files (MonoDevelop/Xamarin Studio) |
||||
|
*.userprefs |
||||
|
|
||||
|
# Build results |
||||
|
[Dd]ebug/ |
||||
|
[Dd]ebugPublic/ |
||||
|
[Rr]elease/ |
||||
|
[Rr]eleases/ |
||||
|
x64/ |
||||
|
x86/ |
||||
|
bld/ |
||||
|
[Bb]in/ |
||||
|
[Oo]bj/ |
||||
|
[Ll]og/ |
||||
|
|
||||
|
# Visual Studio 2015 cache/options directory |
||||
|
.vs/ |
||||
|
# Uncomment if you have tasks that create the project's static files in wwwroot |
||||
|
#wwwroot/ |
||||
|
|
||||
|
# MSTest test Results |
||||
|
[Tt]est[Rr]esult*/ |
||||
|
[Bb]uild[Ll]og.* |
||||
|
|
||||
|
# NUNIT |
||||
|
*.VisualState.xml |
||||
|
TestResult.xml |
||||
|
|
||||
|
# Build Results of an ATL Project |
||||
|
[Dd]ebugPS/ |
||||
|
[Rr]eleasePS/ |
||||
|
dlldata.c |
||||
|
|
||||
|
# DNX |
||||
|
project.lock.json |
||||
|
artifacts/ |
||||
|
|
||||
|
*_i.c |
||||
|
*_p.c |
||||
|
*_i.h |
||||
|
*.ilk |
||||
|
*.meta |
||||
|
*.obj |
||||
|
*.pch |
||||
|
*.pdb |
||||
|
*.pgc |
||||
|
*.pgd |
||||
|
*.rsp |
||||
|
*.sbr |
||||
|
*.tlb |
||||
|
*.tli |
||||
|
*.tlh |
||||
|
*.tmp |
||||
|
*.tmp_proj |
||||
|
*.log |
||||
|
*.vspscc |
||||
|
*.vssscc |
||||
|
.builds |
||||
|
*.pidb |
||||
|
*.svclog |
||||
|
*.scc |
||||
|
|
||||
|
# Chutzpah Test files |
||||
|
_Chutzpah* |
||||
|
|
||||
|
# Visual C++ cache files |
||||
|
ipch/ |
||||
|
*.aps |
||||
|
*.ncb |
||||
|
*.opendb |
||||
|
*.opensdf |
||||
|
*.sdf |
||||
|
*.cachefile |
||||
|
*.VC.db |
||||
|
*.VC.VC.opendb |
||||
|
|
||||
|
# Visual Studio profiler |
||||
|
*.psess |
||||
|
*.vsp |
||||
|
*.vspx |
||||
|
*.sap |
||||
|
|
||||
|
# TFS 2012 Local Workspace |
||||
|
$tf/ |
||||
|
|
||||
|
# Guidance Automation Toolkit |
||||
|
*.gpState |
||||
|
|
||||
|
# ReSharper is a .NET coding add-in |
||||
|
_ReSharper*/ |
||||
|
*.[Rr]e[Ss]harper |
||||
|
*.DotSettings.user |
||||
|
|
||||
|
# JustCode is a .NET coding add-in |
||||
|
.JustCode |
||||
|
|
||||
|
# TeamCity is a build add-in |
||||
|
_TeamCity* |
||||
|
|
||||
|
# DotCover is a Code Coverage Tool |
||||
|
*.dotCover |
||||
|
|
||||
|
# NCrunch |
||||
|
_NCrunch_* |
||||
|
.*crunch*.local.xml |
||||
|
nCrunchTemp_* |
||||
|
|
||||
|
# MightyMoose |
||||
|
*.mm.* |
||||
|
AutoTest.Net/ |
||||
|
|
||||
|
# Web workbench (sass) |
||||
|
.sass-cache/ |
||||
|
|
||||
|
# Installshield output folder |
||||
|
[Ee]xpress/ |
||||
|
|
||||
|
# DocProject is a documentation generator add-in |
||||
|
DocProject/buildhelp/ |
||||
|
DocProject/Help/*.HxT |
||||
|
DocProject/Help/*.HxC |
||||
|
DocProject/Help/*.hhc |
||||
|
DocProject/Help/*.hhk |
||||
|
DocProject/Help/*.hhp |
||||
|
DocProject/Help/Html2 |
||||
|
DocProject/Help/html |
||||
|
|
||||
|
# Click-Once directory |
||||
|
publish/ |
||||
|
|
||||
|
# Publish Web Output |
||||
|
*.[Pp]ublish.xml |
||||
|
*.azurePubxml |
||||
|
# TODO: Comment the next line if you want to checkin your web deploy settings |
||||
|
# but database connection strings (with potential passwords) will be unencrypted |
||||
|
*.pubxml |
||||
|
*.publishproj |
||||
|
|
||||
|
# Microsoft Azure Web App publish settings. Comment the next line if you want to |
||||
|
# checkin your Azure Web App publish settings, but sensitive information contained |
||||
|
# in these scripts will be unencrypted |
||||
|
PublishScripts/ |
||||
|
|
||||
|
# NuGet Packages |
||||
|
*.nupkg |
||||
|
# The packages folder can be ignored because of Package Restore |
||||
|
**/packages/* |
||||
|
# except build/, which is used as an MSBuild target. |
||||
|
!**/packages/build/ |
||||
|
# Uncomment if necessary however generally it will be regenerated when needed |
||||
|
#!**/packages/repositories.config |
||||
|
# NuGet v3's project.json files produces more ignoreable files |
||||
|
*.nuget.props |
||||
|
*.nuget.targets |
||||
|
|
||||
|
# Microsoft Azure Build Output |
||||
|
csx/ |
||||
|
*.build.csdef |
||||
|
|
||||
|
# Microsoft Azure Emulator |
||||
|
ecf/ |
||||
|
rcf/ |
||||
|
|
||||
|
# Windows Store app package directories and files |
||||
|
AppPackages/ |
||||
|
BundleArtifacts/ |
||||
|
Package.StoreAssociation.xml |
||||
|
_pkginfo.txt |
||||
|
|
||||
|
# Visual Studio cache files |
||||
|
# files ending in .cache can be ignored |
||||
|
*.[Cc]ache |
||||
|
# but keep track of directories ending in .cache |
||||
|
!*.[Cc]ache/ |
||||
|
|
||||
|
# Others |
||||
|
ClientBin/ |
||||
|
~$* |
||||
|
*~ |
||||
|
*.dbmdl |
||||
|
*.dbproj.schemaview |
||||
|
*.pfx |
||||
|
*.publishsettings |
||||
|
node_modules/ |
||||
|
orleans.codegen.cs |
||||
|
|
||||
|
# Since there are multiple workflows, uncomment next line to ignore bower_components |
||||
|
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) |
||||
|
#bower_components/ |
||||
|
|
||||
|
# RIA/Silverlight projects |
||||
|
Generated_Code/ |
||||
|
|
||||
|
# Backup & report files from converting an old project file |
||||
|
# to a newer Visual Studio version. Backup files are not needed, |
||||
|
# because we have git ;-) |
||||
|
_UpgradeReport_Files/ |
||||
|
Backup*/ |
||||
|
UpgradeLog*.XML |
||||
|
UpgradeLog*.htm |
||||
|
|
||||
|
# SQL Server files |
||||
|
*.mdf |
||||
|
*.ldf |
||||
|
|
||||
|
# Business Intelligence projects |
||||
|
*.rdl.data |
||||
|
*.bim.layout |
||||
|
*.bim_*.settings |
||||
|
|
||||
|
# Microsoft Fakes |
||||
|
FakesAssemblies/ |
||||
|
|
||||
|
# GhostDoc plugin setting file |
||||
|
*.GhostDoc.xml |
||||
|
|
||||
|
# Node.js Tools for Visual Studio |
||||
|
.ntvs_analysis.dat |
||||
|
|
||||
|
# Visual Studio 6 build log |
||||
|
*.plg |
||||
|
|
||||
|
# Visual Studio 6 workspace options file |
||||
|
*.opt |
||||
|
|
||||
|
# Visual Studio LightSwitch build output |
||||
|
**/*.HTMLClient/GeneratedArtifacts |
||||
|
**/*.DesktopClient/GeneratedArtifacts |
||||
|
**/*.DesktopClient/ModelManifest.xml |
||||
|
**/*.Server/GeneratedArtifacts |
||||
|
**/*.Server/ModelManifest.xml |
||||
|
_Pvt_Extensions |
||||
|
|
||||
|
# Paket dependency manager |
||||
|
.paket/paket.exe |
||||
|
paket-files/ |
||||
|
|
||||
|
# FAKE - F# Make |
||||
|
.fake/ |
||||
|
|
||||
|
# JetBrains Rider |
||||
|
.idea/ |
||||
|
*.sln.iml |
||||
|
|
||||
|
# MyProjectName |
||||
|
src/MyCompanyName.MyProjectName.ConsoleApp/Logs/logs.txt |
||||
@ -0,0 +1,32 @@ |
|||||
|
|
||||
|
Microsoft Visual Studio Solution File, Format Version 12.00 |
||||
|
# Visual Studio Version 17 |
||||
|
VisualStudioVersion = 17.0.31611.283 |
||||
|
MinimumVisualStudioVersion = 10.0.40219.1 |
||||
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyCompanyName.MyProjectName", "src\MyCompanyName.MyProjectName\MyCompanyName.MyProjectName.csproj", "{B22CB1A1-A9D3-4970-9F00-50307BCCCAB7}" |
||||
|
EndProject |
||||
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{88D70326-FD7B-4F90-8CDE-D99B7819AF7E}" |
||||
|
EndProject |
||||
|
Global |
||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
||||
|
Debug|Any CPU = Debug|Any CPU |
||||
|
Release|Any CPU = Release|Any CPU |
||||
|
EndGlobalSection |
||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
||||
|
{B22CB1A1-A9D3-4970-9F00-50307BCCCAB7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||
|
{B22CB1A1-A9D3-4970-9F00-50307BCCCAB7}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||
|
{B22CB1A1-A9D3-4970-9F00-50307BCCCAB7}.Debug|Any CPU.Deploy.0 = Debug|Any CPU |
||||
|
{B22CB1A1-A9D3-4970-9F00-50307BCCCAB7}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||
|
{B22CB1A1-A9D3-4970-9F00-50307BCCCAB7}.Release|Any CPU.Build.0 = Release|Any CPU |
||||
|
{B22CB1A1-A9D3-4970-9F00-50307BCCCAB7}.Release|Any CPU.Deploy.0 = Release|Any CPU |
||||
|
EndGlobalSection |
||||
|
GlobalSection(SolutionProperties) = preSolution |
||||
|
HideSolutionNode = FALSE |
||||
|
EndGlobalSection |
||||
|
GlobalSection(NestedProjects) = preSolution |
||||
|
{B22CB1A1-A9D3-4970-9F00-50307BCCCAB7} = {88D70326-FD7B-4F90-8CDE-D99B7819AF7E} |
||||
|
EndGlobalSection |
||||
|
GlobalSection(ExtensibilityGlobals) = postSolution |
||||
|
SolutionGuid = {61F7FB11-1E47-470C-91E2-47F8143E1572} |
||||
|
EndGlobalSection |
||||
|
EndGlobal |
||||
@ -0,0 +1,7 @@ |
|||||
|
<Project> |
||||
|
<PropertyGroup> |
||||
|
<LangVersion>latest</LangVersion> |
||||
|
<Version>0.1.0</Version> |
||||
|
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn> |
||||
|
</PropertyGroup> |
||||
|
</Project> |
||||
@ -0,0 +1,14 @@ |
|||||
|
<?xml version = "1.0" encoding = "UTF-8" ?> |
||||
|
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
||||
|
xmlns:local="clr-namespace:MyCompanyName.MyProjectName" |
||||
|
x:Class="MyCompanyName.MyProjectName.App"> |
||||
|
<Application.Resources> |
||||
|
<ResourceDictionary> |
||||
|
<ResourceDictionary.MergedDictionaries> |
||||
|
<ResourceDictionary Source="Resources/Styles/Colors.xaml" /> |
||||
|
<ResourceDictionary Source="Resources/Styles/Styles.xaml" /> |
||||
|
</ResourceDictionary.MergedDictionaries> |
||||
|
</ResourceDictionary> |
||||
|
</Application.Resources> |
||||
|
</Application> |
||||
@ -0,0 +1,11 @@ |
|||||
|
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
public partial class App : Application |
||||
|
{ |
||||
|
public App() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
|
||||
|
MainPage = new AppShell(); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,14 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<Shell |
||||
|
x:Class="MyCompanyName.MyProjectName.AppShell" |
||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
||||
|
xmlns:local="clr-namespace:MyCompanyName.MyProjectName" |
||||
|
Shell.FlyoutBehavior="Disabled"> |
||||
|
|
||||
|
<ShellContent |
||||
|
Title="Home" |
||||
|
ContentTemplate="{DataTemplate local:MainPage}" |
||||
|
Route="MainPage" /> |
||||
|
|
||||
|
</Shell> |
||||
@ -0,0 +1,9 @@ |
|||||
|
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
public partial class AppShell : Shell |
||||
|
{ |
||||
|
public AppShell() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,11 @@ |
|||||
|
using Volo.Abp.DependencyInjection; |
||||
|
|
||||
|
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
public class HelloWorldService : ITransientDependency |
||||
|
{ |
||||
|
public string SayHello() |
||||
|
{ |
||||
|
return "Hello, World!"; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,40 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
||||
|
x:Class="MyCompanyName.MyProjectName.MainPage"> |
||||
|
|
||||
|
<ScrollView> |
||||
|
<VerticalStackLayout |
||||
|
Spacing="25" |
||||
|
Padding="30,0" |
||||
|
VerticalOptions="Center"> |
||||
|
|
||||
|
<Image |
||||
|
Source="dotnet_bot.png" |
||||
|
HeightRequest="200" |
||||
|
HorizontalOptions="Center" /> |
||||
|
|
||||
|
<Label |
||||
|
x:Name="HelloLab" |
||||
|
Text="Loading..." |
||||
|
SemanticProperties.HeadingLevel="Level1" |
||||
|
FontSize="32" |
||||
|
HorizontalOptions="Center" /> |
||||
|
|
||||
|
<Label |
||||
|
Text="Welcome! This is a MAUI startup template for the ABP Framework" |
||||
|
SemanticProperties.HeadingLevel="Level2" |
||||
|
FontSize="18" |
||||
|
HorizontalOptions="Center" /> |
||||
|
|
||||
|
<Button |
||||
|
x:Name="CounterBtn" |
||||
|
Text="Click me" |
||||
|
SemanticProperties.Hint="Counts the number of times you click" |
||||
|
Clicked="OnCounterClicked" |
||||
|
HorizontalOptions="Center" /> |
||||
|
|
||||
|
</VerticalStackLayout> |
||||
|
</ScrollView> |
||||
|
|
||||
|
</ContentPage> |
||||
@ -0,0 +1,35 @@ |
|||||
|
using Volo.Abp.DependencyInjection; |
||||
|
|
||||
|
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
public partial class MainPage : ContentPage, ISingletonDependency |
||||
|
{ |
||||
|
private readonly HelloWorldService _helloWorldService; |
||||
|
|
||||
|
int count = 0; |
||||
|
|
||||
|
public MainPage(HelloWorldService helloWorldService) |
||||
|
{ |
||||
|
_helloWorldService = helloWorldService; |
||||
|
InitializeComponent(); |
||||
|
SetHelloLabText(); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
private void SetHelloLabText() |
||||
|
{ |
||||
|
HelloLab.Text = _helloWorldService.SayHello(); |
||||
|
} |
||||
|
|
||||
|
private void OnCounterClicked(object sender, EventArgs e) |
||||
|
{ |
||||
|
count++; |
||||
|
|
||||
|
if (count == 1) |
||||
|
CounterBtn.Text = $"Clicked {count} time"; |
||||
|
else |
||||
|
CounterBtn.Text = $"Clicked {count} times"; |
||||
|
|
||||
|
SemanticScreenReader.Announce(CounterBtn.Text); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,42 @@ |
|||||
|
using System.Reflection; |
||||
|
using Microsoft.Extensions.Configuration; |
||||
|
using Microsoft.Extensions.FileProviders; |
||||
|
using Volo.Abp; |
||||
|
using Volo.Abp.Autofac; |
||||
|
|
||||
|
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
public static class MauiProgram |
||||
|
{ |
||||
|
public static MauiApp CreateMauiApp() |
||||
|
{ |
||||
|
var builder = MauiApp.CreateBuilder(); |
||||
|
builder |
||||
|
.UseMauiApp<App>() |
||||
|
.ConfigureFonts(fonts => |
||||
|
{ |
||||
|
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); |
||||
|
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); |
||||
|
}) |
||||
|
.ConfigureContainer(new AbpAutofacServiceProviderFactory(new Autofac.ContainerBuilder())); |
||||
|
|
||||
|
ConfigureConfiguration(builder); |
||||
|
|
||||
|
builder.Services.AddApplication<MyProjectNameModule>(options => |
||||
|
{ |
||||
|
options.Services.ReplaceConfiguration(builder.Configuration); |
||||
|
}); |
||||
|
|
||||
|
var app = builder.Build(); |
||||
|
|
||||
|
app.Services.GetRequiredService<IAbpApplicationWithExternalServiceProvider>().Initialize(app.Services); |
||||
|
|
||||
|
return app; |
||||
|
} |
||||
|
|
||||
|
private static void ConfigureConfiguration(MauiAppBuilder builder) |
||||
|
{ |
||||
|
var assembly = typeof(App).GetTypeInfo().Assembly; |
||||
|
builder.Configuration.AddJsonFile(new EmbeddedFileProvider(assembly), "appsettings.json", optional: false,false); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,63 @@ |
|||||
|
<Project Sdk="Microsoft.NET.Sdk"> |
||||
|
|
||||
|
<Import Project="..\..\common.props" /> |
||||
|
|
||||
|
<PropertyGroup> |
||||
|
<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks> |
||||
|
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks> |
||||
|
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET --> |
||||
|
<!-- <TargetFrameworks>$(TargetFrameworks);net6.0-tizen</TargetFrameworks> --> |
||||
|
<OutputType>Exe</OutputType> |
||||
|
<RootNamespace>MyCompanyName.MyProjectName</RootNamespace> |
||||
|
<UseMaui>true</UseMaui> |
||||
|
<SingleProject>true</SingleProject> |
||||
|
<ImplicitUsings>enable</ImplicitUsings> |
||||
|
|
||||
|
<!-- Display name --> |
||||
|
<ApplicationTitle>MyCompanyName.MyProjectName</ApplicationTitle> |
||||
|
|
||||
|
<!-- App Identifier --> |
||||
|
<ApplicationId>com.mycompanyname.myprojectname</ApplicationId> |
||||
|
<ApplicationIdGuid>27317750-B571-4690-B433-B358B2480E01</ApplicationIdGuid> |
||||
|
|
||||
|
<!-- Versions --> |
||||
|
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> |
||||
|
<ApplicationVersion>1</ApplicationVersion> |
||||
|
|
||||
|
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion> |
||||
|
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">14.0</SupportedOSPlatformVersion> |
||||
|
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion> |
||||
|
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion> |
||||
|
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion> |
||||
|
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion> |
||||
|
</PropertyGroup> |
||||
|
|
||||
|
<ItemGroup> |
||||
|
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.Autofac\Volo.Abp.Autofac.csproj" /> |
||||
|
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="6.0.5" /> |
||||
|
</ItemGroup> |
||||
|
|
||||
|
<ItemGroup> |
||||
|
<!-- App Icon --> |
||||
|
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" /> |
||||
|
|
||||
|
<!-- Splash Screen --> |
||||
|
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" /> |
||||
|
|
||||
|
<!-- Images --> |
||||
|
<MauiImage Include="Resources\Images\*" /> |
||||
|
<MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" /> |
||||
|
|
||||
|
<!-- Custom Fonts --> |
||||
|
<MauiFont Include="Resources\Fonts\*" /> |
||||
|
|
||||
|
<!-- Raw Assets (also remove the "Resources\Raw" prefix) --> |
||||
|
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" /> |
||||
|
</ItemGroup> |
||||
|
|
||||
|
<ItemGroup> |
||||
|
<None Remove="appsettings.json" /> |
||||
|
<EmbeddedResource Include="appsettings.json" /> |
||||
|
</ItemGroup> |
||||
|
|
||||
|
</Project> |
||||
@ -0,0 +1,9 @@ |
|||||
|
using Volo.Abp.Autofac; |
||||
|
using Volo.Abp.Modularity; |
||||
|
|
||||
|
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
[DependsOn(typeof(AbpAutofacModule))] |
||||
|
public class MyProjectNameModule : AbpModule |
||||
|
{ |
||||
|
} |
||||
@ -0,0 +1,6 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
|
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true"></application> |
||||
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
||||
|
<uses-permission android:name="android.permission.INTERNET" /> |
||||
|
</manifest> |
||||
@ -0,0 +1,10 @@ |
|||||
|
using Android.App; |
||||
|
using Android.Content.PM; |
||||
|
using Android.OS; |
||||
|
|
||||
|
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] |
||||
|
public class MainActivity : MauiAppCompatActivity |
||||
|
{ |
||||
|
} |
||||
@ -0,0 +1,15 @@ |
|||||
|
using Android.App; |
||||
|
using Android.Runtime; |
||||
|
|
||||
|
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
[Application] |
||||
|
public class MainApplication : MauiApplication |
||||
|
{ |
||||
|
public MainApplication(IntPtr handle, JniHandleOwnership ownership) |
||||
|
: base(handle, ownership) |
||||
|
{ |
||||
|
} |
||||
|
|
||||
|
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); |
||||
|
} |
||||
@ -0,0 +1,6 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<resources> |
||||
|
<color name="colorPrimary">#512BD4</color> |
||||
|
<color name="colorPrimaryDark">#2B0B98</color> |
||||
|
<color name="colorAccent">#2B0B98</color> |
||||
|
</resources> |
||||
@ -0,0 +1,9 @@ |
|||||
|
using Foundation; |
||||
|
|
||||
|
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
[Register("AppDelegate")] |
||||
|
public class AppDelegate : MauiUIApplicationDelegate |
||||
|
{ |
||||
|
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); |
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
||||
|
<plist version="1.0"> |
||||
|
<dict> |
||||
|
<key>UIDeviceFamily</key> |
||||
|
<array> |
||||
|
<integer>1</integer> |
||||
|
<integer>2</integer> |
||||
|
</array> |
||||
|
<key>UIRequiredDeviceCapabilities</key> |
||||
|
<array> |
||||
|
<string>arm64</string> |
||||
|
</array> |
||||
|
<key>UISupportedInterfaceOrientations</key> |
||||
|
<array> |
||||
|
<string>UIInterfaceOrientationPortrait</string> |
||||
|
<string>UIInterfaceOrientationLandscapeLeft</string> |
||||
|
<string>UIInterfaceOrientationLandscapeRight</string> |
||||
|
</array> |
||||
|
<key>UISupportedInterfaceOrientations~ipad</key> |
||||
|
<array> |
||||
|
<string>UIInterfaceOrientationPortrait</string> |
||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string> |
||||
|
<string>UIInterfaceOrientationLandscapeLeft</string> |
||||
|
<string>UIInterfaceOrientationLandscapeRight</string> |
||||
|
</array> |
||||
|
<key>XSAppIconAssets</key> |
||||
|
<string>Assets.xcassets/appicon.appiconset</string> |
||||
|
</dict> |
||||
|
</plist> |
||||
@ -0,0 +1,15 @@ |
|||||
|
using ObjCRuntime; |
||||
|
using UIKit; |
||||
|
|
||||
|
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
public class Program |
||||
|
{ |
||||
|
// This is the main entry point of the application.
|
||||
|
static void Main(string[] args) |
||||
|
{ |
||||
|
// if you want to use a different Application Delegate class from "AppDelegate"
|
||||
|
// you can specify it here.
|
||||
|
UIApplication.Main(args, null, typeof(AppDelegate)); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,16 @@ |
|||||
|
using System; |
||||
|
using Microsoft.Maui; |
||||
|
using Microsoft.Maui.Hosting; |
||||
|
|
||||
|
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
class Program : MauiApplication |
||||
|
{ |
||||
|
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); |
||||
|
|
||||
|
static void Main(string[] args) |
||||
|
{ |
||||
|
var app = new Program(); |
||||
|
app.Run(args); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,15 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<manifest package="com.companyname.MyCompanyName.MyProjectName" version="1.0.0" api-version="7" xmlns="http://tizen.org/ns/packages"> |
||||
|
<profile name="common" /> |
||||
|
<ui-application appid="com.companyname.MyCompanyName.MyProjectName" exec="MyCompanyName.MyProjectName.dll" multiple="false" nodisplay="false" taskmanage="true" type="dotnet" launch_mode="single"> |
||||
|
<label>MyCompanyName.MyProjectName</label> |
||||
|
<icon>appicon.xhigh.png</icon> |
||||
|
<metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" /> |
||||
|
</ui-application> |
||||
|
<shortcut-list /> |
||||
|
<privileges> |
||||
|
<privilege>http://tizen.org/privilege/internet</privilege> |
||||
|
</privileges> |
||||
|
<dependencies /> |
||||
|
<provides-appdefined-privileges /> |
||||
|
</manifest> |
||||
@ -0,0 +1,8 @@ |
|||||
|
<maui:MauiWinUIApplication |
||||
|
x:Class="MyCompanyName.MyProjectName.WinUI.App" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:maui="using:Microsoft.Maui" |
||||
|
xmlns:local="using:MyCompanyName.MyProjectName.WinUI"> |
||||
|
|
||||
|
</maui:MauiWinUIApplication> |
||||
@ -0,0 +1,24 @@ |
|||||
|
using Microsoft.UI.Xaml; |
||||
|
|
||||
|
// To learn more about WinUI, the WinUI project structure,
|
||||
|
// and more about our project templates, see: http://aka.ms/winui-project-info.
|
||||
|
|
||||
|
namespace MyCompanyName.MyProjectName.WinUI; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Provides application-specific behavior to supplement the default Application class.
|
||||
|
/// </summary>
|
||||
|
public partial class App : MauiWinUIApplication |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Initializes the singleton application object. This is the first line of authored code
|
||||
|
/// executed, and as such is the logical equivalent of main() or WinMain().
|
||||
|
/// </summary>
|
||||
|
public App() |
||||
|
{ |
||||
|
this.InitializeComponent(); |
||||
|
} |
||||
|
|
||||
|
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); |
||||
|
} |
||||
|
|
||||
@ -0,0 +1,43 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<Package |
||||
|
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" |
||||
|
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" |
||||
|
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" |
||||
|
IgnorableNamespaces="uap rescap"> |
||||
|
|
||||
|
<Identity Name="maui-package-name-placeholder" Publisher="CN=User Name" Version="0.0.0.0" /> |
||||
|
|
||||
|
<Properties> |
||||
|
<DisplayName>$placeholder$</DisplayName> |
||||
|
<PublisherDisplayName>User Name</PublisherDisplayName> |
||||
|
<Logo>$placeholder$.png</Logo> |
||||
|
</Properties> |
||||
|
|
||||
|
<Dependencies> |
||||
|
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" /> |
||||
|
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" /> |
||||
|
</Dependencies> |
||||
|
|
||||
|
<Resources> |
||||
|
<Resource Language="x-generate" /> |
||||
|
</Resources> |
||||
|
|
||||
|
<Applications> |
||||
|
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="$targetentrypoint$"> |
||||
|
<uap:VisualElements |
||||
|
DisplayName="$placeholder$" |
||||
|
Description="$placeholder$" |
||||
|
Square150x150Logo="$placeholder$.png" |
||||
|
Square44x44Logo="$placeholder$.png" |
||||
|
BackgroundColor="transparent"> |
||||
|
<uap:DefaultTile Square71x71Logo="$placeholder$.png" Wide310x150Logo="$placeholder$.png" Square310x310Logo="$placeholder$.png" /> |
||||
|
<uap:SplashScreen Image="$placeholder$.png" /> |
||||
|
</uap:VisualElements> |
||||
|
</Application> |
||||
|
</Applications> |
||||
|
|
||||
|
<Capabilities> |
||||
|
<rescap:Capability Name="runFullTrust" /> |
||||
|
</Capabilities> |
||||
|
|
||||
|
</Package> |
||||
@ -0,0 +1,15 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> |
||||
|
<assemblyIdentity version="1.0.0.0" name="MyCompanyName.MyProjectName.WinUI.app"/> |
||||
|
|
||||
|
<application xmlns="urn:schemas-microsoft-com:asm.v3"> |
||||
|
<windowsSettings> |
||||
|
<!-- The combination of below two tags have the following effect: |
||||
|
1) Per-Monitor for >= Windows 10 Anniversary Update |
||||
|
2) System < Windows 10 Anniversary Update |
||||
|
--> |
||||
|
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware> |
||||
|
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness> |
||||
|
</windowsSettings> |
||||
|
</application> |
||||
|
</assembly> |
||||
@ -0,0 +1,9 @@ |
|||||
|
using Foundation; |
||||
|
|
||||
|
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
[Register("AppDelegate")] |
||||
|
public class AppDelegate : MauiUIApplicationDelegate |
||||
|
{ |
||||
|
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); |
||||
|
} |
||||
@ -0,0 +1,32 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
||||
|
<plist version="1.0"> |
||||
|
<dict> |
||||
|
<key>LSRequiresIPhoneOS</key> |
||||
|
<true/> |
||||
|
<key>UIDeviceFamily</key> |
||||
|
<array> |
||||
|
<integer>1</integer> |
||||
|
<integer>2</integer> |
||||
|
</array> |
||||
|
<key>UIRequiredDeviceCapabilities</key> |
||||
|
<array> |
||||
|
<string>arm64</string> |
||||
|
</array> |
||||
|
<key>UISupportedInterfaceOrientations</key> |
||||
|
<array> |
||||
|
<string>UIInterfaceOrientationPortrait</string> |
||||
|
<string>UIInterfaceOrientationLandscapeLeft</string> |
||||
|
<string>UIInterfaceOrientationLandscapeRight</string> |
||||
|
</array> |
||||
|
<key>UISupportedInterfaceOrientations~ipad</key> |
||||
|
<array> |
||||
|
<string>UIInterfaceOrientationPortrait</string> |
||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string> |
||||
|
<string>UIInterfaceOrientationLandscapeLeft</string> |
||||
|
<string>UIInterfaceOrientationLandscapeRight</string> |
||||
|
</array> |
||||
|
<key>XSAppIconAssets</key> |
||||
|
<string>Assets.xcassets/appicon.appiconset</string> |
||||
|
</dict> |
||||
|
</plist> |
||||
@ -0,0 +1,15 @@ |
|||||
|
using ObjCRuntime; |
||||
|
using UIKit; |
||||
|
|
||||
|
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
public class Program |
||||
|
{ |
||||
|
// This is the main entry point of the application.
|
||||
|
static void Main(string[] args) |
||||
|
{ |
||||
|
// if you want to use a different Application Delegate class from "AppDelegate"
|
||||
|
// you can specify it here.
|
||||
|
UIApplication.Main(args, null, typeof(AppDelegate)); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,8 @@ |
|||||
|
{ |
||||
|
"profiles": { |
||||
|
"Windows Machine": { |
||||
|
"commandName": "MsixPackage", |
||||
|
"nativeDebugging": false |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
After Width: | Height: | Size: 228 B |
|
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@ -0,0 +1,15 @@ |
|||||
|
Any raw assets you want to be deployed with your application can be placed in |
||||
|
this directory (and child directories). Deployment of the asset to your application |
||||
|
is automatically handled by the following `MauiAsset` Build Action within your `.csproj`. |
||||
|
|
||||
|
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" /> |
||||
|
|
||||
|
These files will be deployed with you package and will be accessible using Essentials: |
||||
|
|
||||
|
async Task LoadMauiAsset() |
||||
|
{ |
||||
|
using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt"); |
||||
|
using var reader = new StreamReader(stream); |
||||
|
|
||||
|
var contents = reader.ReadToEnd(); |
||||
|
} |
||||
|
After Width: | Height: | Size: 1.8 KiB |
@ -0,0 +1,44 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<?xaml-comp compile="true" ?> |
||||
|
<ResourceDictionary |
||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"> |
||||
|
|
||||
|
<Color x:Key="Primary">#512BD4</Color> |
||||
|
<Color x:Key="Secondary">#DFD8F7</Color> |
||||
|
<Color x:Key="Tertiary">#2B0B98</Color> |
||||
|
<Color x:Key="White">White</Color> |
||||
|
<Color x:Key="Black">Black</Color> |
||||
|
<Color x:Key="Gray100">#E1E1E1</Color> |
||||
|
<Color x:Key="Gray200">#C8C8C8</Color> |
||||
|
<Color x:Key="Gray300">#ACACAC</Color> |
||||
|
<Color x:Key="Gray400">#919191</Color> |
||||
|
<Color x:Key="Gray500">#6E6E6E</Color> |
||||
|
<Color x:Key="Gray600">#404040</Color> |
||||
|
<Color x:Key="Gray900">#212121</Color> |
||||
|
<Color x:Key="Gray950">#141414</Color> |
||||
|
<SolidColorBrush x:Key="PrimaryBrush" Color="{StaticResource Primary}"/> |
||||
|
<SolidColorBrush x:Key="SecondaryBrush" Color="{StaticResource Secondary}"/> |
||||
|
<SolidColorBrush x:Key="TertiaryBrush" Color="{StaticResource Tertiary}"/> |
||||
|
<SolidColorBrush x:Key="WhiteBrush" Color="{StaticResource White}"/> |
||||
|
<SolidColorBrush x:Key="BlackBrush" Color="{StaticResource Black}"/> |
||||
|
<SolidColorBrush x:Key="Gray100Brush" Color="{StaticResource Gray100}"/> |
||||
|
<SolidColorBrush x:Key="Gray200Brush" Color="{StaticResource Gray200}"/> |
||||
|
<SolidColorBrush x:Key="Gray300Brush" Color="{StaticResource Gray300}"/> |
||||
|
<SolidColorBrush x:Key="Gray400Brush" Color="{StaticResource Gray400}"/> |
||||
|
<SolidColorBrush x:Key="Gray500Brush" Color="{StaticResource Gray500}"/> |
||||
|
<SolidColorBrush x:Key="Gray600Brush" Color="{StaticResource Gray600}"/> |
||||
|
<SolidColorBrush x:Key="Gray900Brush" Color="{StaticResource Gray900}"/> |
||||
|
<SolidColorBrush x:Key="Gray950Brush" Color="{StaticResource Gray950}"/> |
||||
|
|
||||
|
<Color x:Key="Yellow100Accent">#F7B548</Color> |
||||
|
<Color x:Key="Yellow200Accent">#FFD590</Color> |
||||
|
<Color x:Key="Yellow300Accent">#FFE5B9</Color> |
||||
|
<Color x:Key="Cyan100Accent">#28C2D1</Color> |
||||
|
<Color x:Key="Cyan200Accent">#7BDDEF</Color> |
||||
|
<Color x:Key="Cyan300Accent">#C3F2F4</Color> |
||||
|
<Color x:Key="Blue100Accent">#3E8EED</Color> |
||||
|
<Color x:Key="Blue200Accent">#72ACF1</Color> |
||||
|
<Color x:Key="Blue300Accent">#A7CBF6</Color> |
||||
|
|
||||
|
</ResourceDictionary> |
||||
@ -0,0 +1,384 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<?xaml-comp compile="true" ?> |
||||
|
<ResourceDictionary |
||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"> |
||||
|
|
||||
|
<Style TargetType="ActivityIndicator"> |
||||
|
<Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" /> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="IndicatorView"> |
||||
|
<Setter Property="IndicatorColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}"/> |
||||
|
<Setter Property="SelectedIndicatorColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray100}}"/> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="Border"> |
||||
|
<Setter Property="Stroke" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" /> |
||||
|
<Setter Property="StrokeShape" Value="Rectangle"/> |
||||
|
<Setter Property="StrokeThickness" Value="1"/> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="BoxView"> |
||||
|
<Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" /> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="Button"> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Primary}}" /> |
||||
|
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="FontFamily" Value="OpenSansRegular"/> |
||||
|
<Setter Property="FontSize" Value="14"/> |
||||
|
<Setter Property="CornerRadius" Value="8"/> |
||||
|
<Setter Property="Padding" Value="14,10"/> |
||||
|
<Setter Property="VisualStateManager.VisualStateGroups"> |
||||
|
<VisualStateGroupList> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal" /> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<VisualState.Setters> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" /> |
||||
|
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray600}}" /> |
||||
|
</VisualState.Setters> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateGroupList> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="CheckBox"> |
||||
|
<Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="VisualStateManager.VisualStateGroups"> |
||||
|
<VisualStateGroupList> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal" /> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<VisualState.Setters> |
||||
|
<Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" /> |
||||
|
</VisualState.Setters> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateGroupList> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="DatePicker"> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="BackgroundColor" Value="Transparent" /> |
||||
|
<Setter Property="FontFamily" Value="OpenSansRegular"/> |
||||
|
<Setter Property="FontSize" Value="14"/> |
||||
|
<Setter Property="VisualStateManager.VisualStateGroups"> |
||||
|
<VisualStateGroupList> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal" /> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<VisualState.Setters> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" /> |
||||
|
</VisualState.Setters> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateGroupList> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="Editor"> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="BackgroundColor" Value="Transparent" /> |
||||
|
<Setter Property="FontFamily" Value="OpenSansRegular"/> |
||||
|
<Setter Property="FontSize" Value="14" /> |
||||
|
<Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" /> |
||||
|
<Setter Property="VisualStateManager.VisualStateGroups"> |
||||
|
<VisualStateGroupList> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal" /> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<VisualState.Setters> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" /> |
||||
|
</VisualState.Setters> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateGroupList> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="Entry"> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="BackgroundColor" Value="Transparent" /> |
||||
|
<Setter Property="FontFamily" Value="OpenSansRegular"/> |
||||
|
<Setter Property="FontSize" Value="14" /> |
||||
|
<Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" /> |
||||
|
<Setter Property="VisualStateManager.VisualStateGroups"> |
||||
|
<VisualStateGroupList> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal" /> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<VisualState.Setters> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" /> |
||||
|
</VisualState.Setters> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateGroupList> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="Frame"> |
||||
|
<Setter Property="HasShadow" Value="False" /> |
||||
|
<Setter Property="BorderColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" /> |
||||
|
<Setter Property="CornerRadius" Value="8" /> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="ImageButton"> |
||||
|
<Setter Property="Opacity" Value="1" /> |
||||
|
<Setter Property="BorderColor" Value="Transparent"/> |
||||
|
<Setter Property="BorderWidth" Value="0"/> |
||||
|
<Setter Property="CornerRadius" Value="0"/> |
||||
|
<Setter Property="VisualStateManager.VisualStateGroups"> |
||||
|
<VisualStateGroupList> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal" /> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<VisualState.Setters> |
||||
|
<Setter Property="Opacity" Value="0.5" /> |
||||
|
</VisualState.Setters> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateGroupList> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="Label"> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="FontFamily" Value="OpenSansRegular" /> |
||||
|
<Setter Property="FontSize" Value="14" /> |
||||
|
<Setter Property="VisualStateManager.VisualStateGroups"> |
||||
|
<VisualStateGroupList> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal" /> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<VisualState.Setters> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" /> |
||||
|
</VisualState.Setters> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateGroupList> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="ListView"> |
||||
|
<Setter Property="SeparatorColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" /> |
||||
|
<Setter Property="RefreshControlColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" /> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="Picker"> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="TitleColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" /> |
||||
|
<Setter Property="BackgroundColor" Value="Transparent" /> |
||||
|
<Setter Property="FontFamily" Value="OpenSansRegular"/> |
||||
|
<Setter Property="FontSize" Value="14"/> |
||||
|
<Setter Property="VisualStateManager.VisualStateGroups"> |
||||
|
<VisualStateGroupList> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal" /> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<VisualState.Setters> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" /> |
||||
|
<Setter Property="TitleColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" /> |
||||
|
</VisualState.Setters> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateGroupList> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="ProgressBar"> |
||||
|
<Setter Property="ProgressColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="VisualStateManager.VisualStateGroups"> |
||||
|
<VisualStateGroupList> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal" /> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<VisualState.Setters> |
||||
|
<Setter Property="ProgressColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" /> |
||||
|
</VisualState.Setters> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateGroupList> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="RadioButton"> |
||||
|
<Setter Property="Background" Value="Transparent"/> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="FontFamily" Value="OpenSansRegular"/> |
||||
|
<Setter Property="FontSize" Value="14"/> |
||||
|
<Setter Property="VisualStateManager.VisualStateGroups"> |
||||
|
<VisualStateGroupList> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal" /> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<VisualState.Setters> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" /> |
||||
|
</VisualState.Setters> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateGroupList> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="RefreshView"> |
||||
|
<Setter Property="RefreshColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" /> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="SearchBar"> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="PlaceholderColor" Value="{StaticResource Gray500}" /> |
||||
|
<Setter Property="CancelButtonColor" Value="{StaticResource Gray500}" /> |
||||
|
<Setter Property="BackgroundColor" Value="Transparent" /> |
||||
|
<Setter Property="FontFamily" Value="OpenSansRegular" /> |
||||
|
<Setter Property="FontSize" Value="14" /> |
||||
|
<Setter Property="VisualStateManager.VisualStateGroups"> |
||||
|
<VisualStateGroupList> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal" /> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<VisualState.Setters> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" /> |
||||
|
<Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" /> |
||||
|
</VisualState.Setters> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateGroupList> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="SearchHandler"> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="PlaceholderColor" Value="{StaticResource Gray500}" /> |
||||
|
<Setter Property="BackgroundColor" Value="Transparent" /> |
||||
|
<Setter Property="FontFamily" Value="OpenSansRegular" /> |
||||
|
<Setter Property="FontSize" Value="14" /> |
||||
|
<Setter Property="VisualStateManager.VisualStateGroups"> |
||||
|
<VisualStateGroupList> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal" /> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<VisualState.Setters> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" /> |
||||
|
<Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" /> |
||||
|
</VisualState.Setters> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateGroupList> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="Shadow"> |
||||
|
<Setter Property="Radius" Value="15" /> |
||||
|
<Setter Property="Opacity" Value="0.5" /> |
||||
|
<Setter Property="Brush" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="Offset" Value="10,10" /> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="Slider"> |
||||
|
<Setter Property="MinimumTrackColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="MaximumTrackColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray600}}" /> |
||||
|
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="VisualStateManager.VisualStateGroups"> |
||||
|
<VisualStateGroupList> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal" /> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<VisualState.Setters> |
||||
|
<Setter Property="MinimumTrackColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}"/> |
||||
|
<Setter Property="MaximumTrackColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}"/> |
||||
|
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}"/> |
||||
|
</VisualState.Setters> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateGroupList> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="SwipeItem"> |
||||
|
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" /> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="Switch"> |
||||
|
<Setter Property="OnColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="ThumbColor" Value="{StaticResource White}" /> |
||||
|
<Setter Property="VisualStateManager.VisualStateGroups"> |
||||
|
<VisualStateGroupList> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal" /> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<VisualState.Setters> |
||||
|
<Setter Property="OnColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" /> |
||||
|
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" /> |
||||
|
</VisualState.Setters> |
||||
|
</VisualState> |
||||
|
<VisualState x:Name="On"> |
||||
|
<VisualState.Setters> |
||||
|
<Setter Property="OnColor" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource Gray200}}" /> |
||||
|
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" /> |
||||
|
</VisualState.Setters> |
||||
|
</VisualState> |
||||
|
<VisualState x:Name="Off"> |
||||
|
<VisualState.Setters> |
||||
|
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Gray400}, Dark={StaticResource Gray500}}" /> |
||||
|
</VisualState.Setters> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateGroupList> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="TimePicker"> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="Background" Value="Transparent"/> |
||||
|
<Setter Property="FontFamily" Value="OpenSansRegular"/> |
||||
|
<Setter Property="FontSize" Value="14"/> |
||||
|
<Setter Property="VisualStateManager.VisualStateGroups"> |
||||
|
<VisualStateGroupList> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal" /> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<VisualState.Setters> |
||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" /> |
||||
|
</VisualState.Setters> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateGroupList> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="Page" ApplyToDerivedTypes="True"> |
||||
|
<Setter Property="Padding" Value="0"/> |
||||
|
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" /> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="Shell" ApplyToDerivedTypes="True"> |
||||
|
<Setter Property="Shell.BackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource Gray950}}" /> |
||||
|
<Setter Property="Shell.ForegroundColor" Value="{OnPlatform WinUI={StaticResource Primary}, Default={StaticResource White}}"></Setter> |
||||
|
<Setter Property="Shell.TitleColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="Shell.DisabledColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" /> |
||||
|
<Setter Property="Shell.UnselectedColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray200}}" /> |
||||
|
<Setter Property="Shell.NavBarHasShadow" Value="False" /> |
||||
|
<Setter Property="Shell.TabBarBackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" /> |
||||
|
<Setter Property="Shell.TabBarForegroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="Shell.TabBarTitleColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="Shell.TabBarUnselectedColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" /> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="NavigationPage"> |
||||
|
<Setter Property="BarBackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource Gray950}}" /> |
||||
|
<Setter Property="BarTextColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="IconColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource White}}" /> |
||||
|
</Style> |
||||
|
|
||||
|
<Style TargetType="TabbedPage"> |
||||
|
<Setter Property="BarBackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Gray950}}" /> |
||||
|
<Setter Property="BarTextColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" /> |
||||
|
<Setter Property="UnselectedTabColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" /> |
||||
|
<Setter Property="SelectedTabColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" /> |
||||
|
</Style> |
||||
|
|
||||
|
</ResourceDictionary> |
||||
@ -0,0 +1,3 @@ |
|||||
|
{ |
||||
|
"AppName": "MyProjectName" |
||||
|
} |
||||
Loading…
Reference in new issue