feat: Add support for net6 mobile targets, bump to uno 4.2-dev
This commit is contained in:
Родитель
a293f5e9f1
Коммит
c911f377e0
|
@ -1,4 +1,4 @@
|
|||
name: Azure Static Web Apps CI/CD
|
||||
name: Azure Static Web Apps CI/CD
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -38,14 +38,14 @@ jobs:
|
|||
useConfigFile: true
|
||||
configFilePath: build/gitversion.yml
|
||||
|
||||
- name: Setup dotnet 5.0.x
|
||||
- name: Setup dotnet 6.0.200
|
||||
uses: actions/setup-dotnet@v1.7.2
|
||||
with:
|
||||
dotnet-version: '5.0.x'
|
||||
dotnet-version: '6.0.200'
|
||||
|
||||
- run: |
|
||||
cd src/samples/Uno.Themes.Samples/Uno.Themes.Samples.Wasm
|
||||
dotnet build -c Release "/p:PackageVersion=${{ steps.gitversion.outputs.fullSemVer }}"
|
||||
dotnet build -c Release "/p:PackageVersion=${{ steps.gitversion.outputs.fullSemVer }}" /p:DisableNet6MobileTargets=true
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
|
|
|
@ -21,21 +21,23 @@ jobs:
|
|||
UWP:
|
||||
ApplicationPlatform: UWP_x64
|
||||
ArtifactName: UWP
|
||||
DisableNet6MobileTargets: true
|
||||
Android:
|
||||
ApplicationPlatform: Android
|
||||
ArtifactName: Android
|
||||
DisableNet6MobileTargets: true
|
||||
Packages:
|
||||
ApplicationPlatform: Packages
|
||||
GeneratePackageOnBuild: true
|
||||
ArtifactName: Packages
|
||||
GeneratePackageOnBuild: true
|
||||
Packages_WinUI:
|
||||
ApplicationPlatform: Packages
|
||||
GeneratePackageOnBuild: true
|
||||
ArtifactName: Packages
|
||||
UseWinUI: true
|
||||
GeneratePackageOnBuild: true
|
||||
|
||||
pool:
|
||||
vmImage: windows-2019
|
||||
vmImage: windows-2022
|
||||
|
||||
steps:
|
||||
- template: build/stage-build.yml
|
||||
|
@ -48,9 +50,11 @@ jobs:
|
|||
iOS:
|
||||
ApplicationPlatform: iPhone
|
||||
ArtifactName: iOS
|
||||
DisableNet6MobileTargets: true
|
||||
macOS:
|
||||
ApplicationPlatform: macOS
|
||||
ArtifactName: macOS
|
||||
DisableNet6MobileTargets: true
|
||||
pool:
|
||||
vmImage: macOS-10.15
|
||||
|
||||
|
|
|
@ -0,0 +1,308 @@
|
|||
[CmdletBinding()]
|
||||
param([Parameter(Mandatory=$true)]
|
||||
[string]$buildNumber)
|
||||
|
||||
# Ensure the error action preference is set to the default for PowerShell3, 'Stop'
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
# Constants
|
||||
$WindowsSDKOptions = @("OptionId.UWPCpp")
|
||||
$WindowsSDKRegPath = "HKLM:\Software\Microsoft\Windows Kits\Installed Roots"
|
||||
$WindowsSDKRegRootKey = "KitsRoot10"
|
||||
$WindowsSDKVersion = "10.0.$buildNumber.0"
|
||||
$WindowsSDKInstalledRegPath = "$WindowsSDKRegPath\$WindowsSDKVersion\Installed Options"
|
||||
$StrongNameRegPath = "HKLM:\SOFTWARE\Microsoft\StrongName\Verification"
|
||||
$PublicKeyTokens = @("31bf3856ad364e35")
|
||||
|
||||
function Download-File
|
||||
{
|
||||
param ([string] $outDir,
|
||||
[string] $downloadUrl,
|
||||
[string] $downloadName)
|
||||
|
||||
$downloadPath = Join-Path $outDir "$downloadName.download"
|
||||
$downloadDest = Join-Path $outDir $downloadName
|
||||
$downloadDestTemp = Join-Path $outDir "$downloadName.tmp"
|
||||
|
||||
Write-Host -NoNewline "Downloading $downloadName..."
|
||||
|
||||
try
|
||||
{
|
||||
$webclient = new-object System.Net.WebClient
|
||||
$webclient.DownloadFile($downloadUrl, $downloadPath)
|
||||
}
|
||||
catch [System.Net.WebException]
|
||||
{
|
||||
Write-Host
|
||||
Write-Warning "Failed to fetch updated file from $downloadUrl"
|
||||
if (!(Test-Path $downloadDest))
|
||||
{
|
||||
throw "$downloadName was not found at $downloadDest"
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Warning "$downloadName may be out of date"
|
||||
}
|
||||
}
|
||||
|
||||
Unblock-File $downloadPath
|
||||
|
||||
$downloadDestTemp = $downloadPath;
|
||||
|
||||
# Delete and rename to final dest
|
||||
if (Test-Path -PathType Container $downloadDest)
|
||||
{
|
||||
[System.IO.Directory]::Delete($downloadDest, $true)
|
||||
}
|
||||
|
||||
Move-Item -Force $downloadDestTemp $downloadDest
|
||||
Write-Host "Done"
|
||||
|
||||
return $downloadDest
|
||||
}
|
||||
|
||||
function Get-ISODriveLetter
|
||||
{
|
||||
param ([string] $isoPath)
|
||||
|
||||
$diskImage = Get-DiskImage -ImagePath $isoPath
|
||||
if ($diskImage)
|
||||
{
|
||||
$volume = Get-Volume -DiskImage $diskImage
|
||||
|
||||
if ($volume)
|
||||
{
|
||||
$driveLetter = $volume.DriveLetter
|
||||
if ($driveLetter)
|
||||
{
|
||||
$driveLetter += ":"
|
||||
return $driveLetter
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $null
|
||||
}
|
||||
|
||||
function Mount-ISO
|
||||
{
|
||||
param ([string] $isoPath)
|
||||
|
||||
# Check if image is already mounted
|
||||
$isoDrive = Get-ISODriveLetter $isoPath
|
||||
|
||||
if (!$isoDrive)
|
||||
{
|
||||
Mount-DiskImage -ImagePath $isoPath -StorageType ISO | Out-Null
|
||||
}
|
||||
|
||||
$isoDrive = Get-ISODriveLetter $isoPath
|
||||
Write-Verbose "$isoPath mounted to ${isoDrive}:"
|
||||
}
|
||||
|
||||
function Dismount-ISO
|
||||
{
|
||||
param ([string] $isoPath)
|
||||
|
||||
$isoDrive = (Get-DiskImage -ImagePath $isoPath | Get-Volume).DriveLetter
|
||||
|
||||
if ($isoDrive)
|
||||
{
|
||||
Write-Verbose "$isoPath dismounted"
|
||||
Dismount-DiskImage -ImagePath $isoPath | Out-Null
|
||||
}
|
||||
}
|
||||
|
||||
function Disable-StrongName
|
||||
{
|
||||
param ([string] $publicKeyToken = "*")
|
||||
|
||||
reg ADD "HKLM\SOFTWARE\Microsoft\StrongName\Verification\*,$publicKeyToken" /f | Out-Null
|
||||
if ($env:PROCESSOR_ARCHITECTURE -eq "AMD64")
|
||||
{
|
||||
reg ADD "HKLM\SOFTWARE\Wow6432Node\Microsoft\StrongName\Verification\*,$publicKeyToken" /f | Out-Null
|
||||
}
|
||||
}
|
||||
|
||||
function Test-Admin
|
||||
{
|
||||
$identity = [Security.Principal.WindowsIdentity]::GetCurrent()
|
||||
$principal = New-Object Security.Principal.WindowsPrincipal $identity
|
||||
$principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
|
||||
}
|
||||
|
||||
function Test-RegistryPathAndValue
|
||||
{
|
||||
param (
|
||||
[parameter(Mandatory=$true)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string] $path,
|
||||
[parameter(Mandatory=$true)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string] $value)
|
||||
|
||||
try
|
||||
{
|
||||
if (Test-Path $path)
|
||||
{
|
||||
Get-ItemProperty -Path $path | Select-Object -ExpandProperty $value -ErrorAction Stop | Out-Null
|
||||
return $true
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
|
||||
return $false
|
||||
}
|
||||
|
||||
function Test-InstallWindowsSDK
|
||||
{
|
||||
$retval = $true
|
||||
|
||||
if (Test-RegistryPathAndValue -Path $WindowsSDKRegPath -Value $WindowsSDKRegRootKey)
|
||||
{
|
||||
# A Windows SDK is installed
|
||||
# Is an SDK of our version installed with the options we need?
|
||||
if (Test-RegistryPathAndValue -Path $WindowsSDKInstalledRegPath -Value "$WindowsSDKOptions")
|
||||
{
|
||||
# It appears we have what we need. Double check the disk
|
||||
$sdkRoot = Get-ItemProperty -Path $WindowsSDKRegPath | Select-Object -ExpandProperty $WindowsSDKRegRootKey
|
||||
if ($sdkRoot)
|
||||
{
|
||||
if (Test-Path $sdkRoot)
|
||||
{
|
||||
$refPath = Join-Path $sdkRoot "References\$WindowsSDKVersion"
|
||||
if (Test-Path $refPath)
|
||||
{
|
||||
$umdPath = Join-Path $sdkRoot "UnionMetadata\$WindowsSDKVersion"
|
||||
if (Test-Path $umdPath)
|
||||
{
|
||||
# Pretty sure we have what we need
|
||||
$retval = $false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $retval
|
||||
}
|
||||
|
||||
function Test-InstallStrongNameHijack
|
||||
{
|
||||
foreach($publicKeyToken in $PublicKeyTokens)
|
||||
{
|
||||
$key = "$StrongNameRegPath\*,$publicKeyToken"
|
||||
if (!(Test-Path $key))
|
||||
{
|
||||
return $true
|
||||
}
|
||||
}
|
||||
|
||||
return $false
|
||||
}
|
||||
|
||||
Write-Host -NoNewline "Checking for installed Windows SDK $WindowsSDKVersion..."
|
||||
$InstallWindowsSDK = Test-InstallWindowsSDK
|
||||
if ($InstallWindowsSDK)
|
||||
{
|
||||
Write-Host "Installation required"
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "INSTALLED"
|
||||
}
|
||||
|
||||
$StrongNameHijack = Test-InstallStrongNameHijack
|
||||
Write-Host -NoNewline "Checking if StrongName bypass required..."
|
||||
|
||||
if ($StrongNameHijack)
|
||||
{
|
||||
Write-Host "REQUIRED"
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Done"
|
||||
}
|
||||
|
||||
if ($StrongNameHijack -or $InstallWindowsSDK)
|
||||
{
|
||||
if (!(Test-Admin))
|
||||
{
|
||||
Write-Host
|
||||
throw "ERROR: Elevation required"
|
||||
}
|
||||
}
|
||||
|
||||
if ($InstallWindowsSDK)
|
||||
{
|
||||
# Static(ish) link for Windows SDK
|
||||
# Note: there is a delay from Windows SDK announcements to availability via the static link
|
||||
$uri = "https://go.microsoft.com/fwlink/?prd=11966&pver=1.0&plcid=0x409&clcid=0x409&ar=Flight&sar=Sdsurl&o1=$buildNumber"
|
||||
|
||||
if($buildNumber -eq 19041)
|
||||
{
|
||||
# Workaround for missing SDK
|
||||
$uri = "https://software-download.microsoft.com/download/pr/19041.1.191206-1406.vb_release_WindowsSDK.iso";
|
||||
}
|
||||
|
||||
if ($env:TEMP -eq $null)
|
||||
{
|
||||
$env:TEMP = Join-Path $env:SystemDrive 'temp'
|
||||
}
|
||||
|
||||
$winsdkTempDir = Join-Path $env:TEMP "WindowsSDK"
|
||||
|
||||
if (![System.IO.Directory]::Exists($winsdkTempDir))
|
||||
{
|
||||
[void][System.IO.Directory]::CreateDirectory($winsdkTempDir)
|
||||
}
|
||||
|
||||
$file = "winsdk_$buildNumber.iso"
|
||||
|
||||
Write-Verbose "Getting WinSDK from $uri"
|
||||
$downloadFile = Download-File $winsdkTempDir $uri $file
|
||||
|
||||
# TODO Check if zip, exe, iso, etc.
|
||||
try
|
||||
{
|
||||
Write-Host -NoNewline "Mounting ISO $file..."
|
||||
Mount-ISO $downloadFile
|
||||
Write-Host "Done"
|
||||
|
||||
$isoDrive = Get-ISODriveLetter $downloadFile
|
||||
|
||||
if (Test-Path $isoDrive)
|
||||
{
|
||||
Write-Host -NoNewLine "Installing WinSDK..."
|
||||
|
||||
$setupPath = Join-Path "$isoDrive" "WinSDKSetup.exe"
|
||||
Start-Process -Wait $setupPath "/features $WindowsSDKOptions /q"
|
||||
Write-Host "Done"
|
||||
}
|
||||
else
|
||||
{
|
||||
throw "Could not find mounted ISO at ${isoDrive}"
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
Write-Host -NoNewline "Dismounting ISO $file..."
|
||||
#Dismount-ISO $downloadFile
|
||||
Write-Host "Done"
|
||||
}
|
||||
}
|
||||
|
||||
if ($StrongNameHijack)
|
||||
{
|
||||
Write-Host -NoNewline "Disabling StrongName for Windows SDK..."
|
||||
|
||||
foreach($key in $PublicKeyTokens)
|
||||
{
|
||||
Disable-StrongName $key
|
||||
}
|
||||
|
||||
Write-Host "Done"
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
parameters:
|
||||
DotNetVersion: '6.0.300-preview.22154.4'
|
||||
UnoCheck_Version: '1.1.0-dev.22'
|
||||
UnoCheck_Manifest: 'https://raw.githubusercontent.com/unoplatform/uno.check/d14571a546b55f58e51e392c04cf098168d6fe2d/manifests/uno.ui-preview.manifest.json'
|
||||
Dotnet_Root: '/usr/local/share/dotnet/'
|
||||
Dotnet_Tools: '~/.dotnet/tools'
|
||||
|
||||
steps:
|
||||
|
||||
# Required until .NET 6 installs properly using UseDotnet
|
||||
# using preview builds
|
||||
- bash: |
|
||||
export PATH="${{ parameters.Dotnet_Root }}:${{ parameters.Dotnet_Tools }}:$PATH"
|
||||
curl -L https://raw.githubusercontent.com/dotnet/install-scripts/11b4eebe23d871c074364940d301c3eb53e7c7ec/src/dotnet-install.sh > dotnet-install.sh
|
||||
sh dotnet-install.sh --version ${{ parameters.DotNetVersion }} --install-dir $DOTNET_ROOT --verbose
|
||||
dotnet --list-sdks
|
||||
echo "##vso[task.setvariable variable=PATH]$PATH"
|
||||
displayName: install .NET ${{ parameters.DotNetVersion }}
|
||||
retryCountOnTaskFailure: 3
|
||||
condition: eq(variables['Agent.OS'], 'Darwin')
|
||||
|
||||
#- task: UseDotNet@2
|
||||
# displayName: 'Use .NET Core SDK ${{ parameters.DotNetVersion }}'
|
||||
# retryCountOnTaskFailure: 3
|
||||
# inputs:
|
||||
# packageType: sdk
|
||||
# version: ${{ parameters.DotNetVersion }}
|
||||
# includePreviewVersions: true
|
||||
|
||||
- template: jdk-setup.yml
|
||||
|
||||
- bash: |
|
||||
dotnet tool update --global uno.check --version ${{ parameters.UnoCheck_Version }} --add-source https://api.nuget.org/v3/index.json
|
||||
uno-check --ci --non-interactive --fix --skip androidsdk --skip gtk3 --skip xcode --skip vswin --skip vsmac --manifest ${{ parameters.UnoCheck_Manifest }}
|
||||
displayName: Install .NET Workloads
|
||||
retryCountOnTaskFailure: 3
|
||||
condition: eq(variables['Agent.OS'], 'Darwin')
|
|
@ -0,0 +1,39 @@
|
|||
parameters:
|
||||
DotNetVersion: '6.0.300-preview.22154.4'
|
||||
UnoCheck_Version: '1.1.0-dev.22'
|
||||
UnoCheck_Manifest: 'https://raw.githubusercontent.com/unoplatform/uno.check/d14571a546b55f58e51e392c04cf098168d6fe2d/manifests/uno.ui-preview.manifest.json'
|
||||
|
||||
steps:
|
||||
|
||||
# Required until .NET 6 installs properly on Windows using UseDotnet
|
||||
# using preview builds
|
||||
- powershell: |
|
||||
$ProgressPreference = 'SilentlyContinue'
|
||||
Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile dotnet-install.ps1
|
||||
& .\dotnet-install.ps1 -Version ${{ parameters.DotNetVersion }} -InstallDir "$env:ProgramFiles\dotnet\" -Verbose
|
||||
& dotnet --list-sdks
|
||||
displayName: Install .NET ${{ parameters.DotNetVersion }}
|
||||
errorActionPreference: stop
|
||||
retryCountOnTaskFailure: 3
|
||||
condition: eq(variables['Agent.OS'], 'Windows_NT')
|
||||
#- task: UseDotNet@2
|
||||
# displayName: 'Use .NET Core SDK ${{ parameters.DotNetVersion }}'
|
||||
# retryCountOnTaskFailure: 3
|
||||
# inputs:
|
||||
# packageType: sdk
|
||||
# version: ${{ parameters.DotNetVersion }}
|
||||
# includePreviewVersions: true
|
||||
|
||||
- powershell: |
|
||||
& dotnet tool update --global uno.check --version ${{ parameters.UnoCheck_Version }} --add-source https://api.nuget.org/v3/index.json
|
||||
& uno-check -v --ci --non-interactive --fix --skip xcode --skip gtk3 --skip vswin --skip androidemulator --skip androidsdk --skip vsmac --manifest ${{ parameters.UnoCheck_Manifest }}
|
||||
displayName: Install .NET Workloads
|
||||
errorActionPreference: continue
|
||||
ignoreLASTEXITCODE: true
|
||||
retryCountOnTaskFailure: 3
|
||||
condition: eq(variables['Agent.OS'], 'Windows_NT')
|
||||
|
||||
# This SDK version is needed as long as `uap10.0` will be supported in Uno.Core
|
||||
- powershell: .\build\Install-WindowsSdkISO.ps1 18362
|
||||
condition: eq(variables['Agent.OS'], 'Windows_NT')
|
||||
displayName: Install Windows SDK 18362
|
|
@ -0,0 +1,6 @@
|
|||
steps:
|
||||
|
||||
- pwsh: |
|
||||
echo "##vso[task.setvariable variable=JAVA_HOME]$(JAVA_HOME_11_X64)"
|
||||
echo "##vso[task.setvariable variable=JavaSdkDirectory]$(JAVA_HOME_11_X64)"
|
||||
displayName: Select JDK 11
|
|
@ -29,7 +29,7 @@
|
|||
packageType: sdk
|
||||
version: 6.0.200
|
||||
|
||||
- bash: dotnet msbuild -r -p:Configuration=Release -p:ApplicationVersion=$(USEGITVERSION.GITVERSION.MAJORMINORPATCH) src/samples/Uno.Themes.Samples/Uno.Themes.Samples.Wasm/Uno.Themes.Samples.Wasm.csproj
|
||||
- bash: dotnet msbuild -r -p:Configuration=Release -p:DisableNet6MobileTargets=true -p:ApplicationVersion=$(USEGITVERSION.GITVERSION.MAJORMINORPATCH) src/samples/Uno.Themes.Samples/Uno.Themes.Samples.Wasm/Uno.Themes.Samples.Wasm.csproj
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
inputs:
|
||||
|
|
|
@ -31,6 +31,10 @@
|
|||
nugetUpdaterVersion: 2.1.1
|
||||
packageAuthor: nventive
|
||||
|
||||
- template: dotnet-install-windows.yml
|
||||
- template: dotnet-install-macos.yml
|
||||
- template: jdk-setup.yml
|
||||
|
||||
- bash: |
|
||||
npm install -g conventional-changelog-cli@2.2.2
|
||||
conventional-changelog -p angular -u -r 1 -o "build/CHANGELOG.md"
|
||||
|
@ -44,7 +48,7 @@
|
|||
configuration: Release
|
||||
platform: $(ApplicationPlatform)
|
||||
maximumCpuCount: true
|
||||
msbuildArguments: /ds /m /r /p:PackageVersion=$(SemVer) /p:ApplicationVersion=$(MajorMinorPatch) /p:RestoreConfigFile=$(Build.SourcesDirectory)\nuget.config /p:PackageReleaseNotesFile=$(Build.SourcesDirectory)/build/CHANGELOG.md /bl:$(build.artifactstagingdirectory)/build-$(ApplicationPlatform).binlog
|
||||
msbuildArguments: /ds /m /r /p:PackageVersion=$(SemVer) /p:ApplicationPlatform=$(ApplicationPlatform) /p:ApplicationVersion=$(MajorMinorPatch) /p:RestoreConfigFile=$(Build.SourcesDirectory)\nuget.config /p:PackageReleaseNotesFile=$(Build.SourcesDirectory)/build/CHANGELOG.md /bl:$(build.artifactstagingdirectory)/build-$(ApplicationPlatform).binlog
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
condition: always()
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sdk": {
|
||||
"allowPrerelease": true
|
||||
}
|
||||
}
|
|
@ -81,11 +81,7 @@
|
|||
<Setter Target="FocusedOverlay.Opacity" Value="{StaticResource CupertinoFocusedOpacity}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="FocusedOverlay.Opacity" Value="{StaticResource CupertinoFocusedOpacity}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused" />
|
||||
<VisualState x:Name="Unfocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="FocusedOverlay.Opacity" Value="0" />
|
||||
|
@ -149,11 +145,7 @@
|
|||
<Setter Target="FocusedOverlay.Opacity" Value="{StaticResource CupertinoFocusedOpacity}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="FocusedOverlay.Opacity" Value="{StaticResource CupertinoFocusedOpacity}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused" />
|
||||
<VisualState x:Name="Unfocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="FocusedOverlay.Opacity" Value="0" />
|
||||
|
@ -839,11 +831,7 @@
|
|||
<Setter Target="FocusRing.Opacity" Value="{StaticResource CupertinoFocusedOpacity}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="FocusRing.Opacity" Value="{StaticResource CupertinoFocusedOpacity}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused" />
|
||||
<VisualState x:Name="Unfocused" />
|
||||
</VisualStateGroup>
|
||||
</VisualStateManager.VisualStateGroups>
|
||||
|
@ -1555,11 +1543,7 @@
|
|||
<Setter Target="FocusRing.Opacity" Value="{StaticResource CupertinoFocusedOpacity}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="FocusRing.Opacity" Value="{StaticResource CupertinoFocusedOpacity}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused" />
|
||||
<VisualState x:Name="Unfocused" />
|
||||
</VisualStateGroup>
|
||||
</VisualStateManager.VisualStateGroups>
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project Sdk="MSBuild.Sdk.Extras/3.0.23">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0;xamarinios10;xamarinmac20;monoandroid11.0</TargetFrameworks>
|
||||
<TargetFrameworks>netstandard2.0;xamarinios10;monoandroid11.0;xamarinmac20</TargetFrameworks>
|
||||
<TargetFrameworks Condition="'$(DisableNet6MobileTargets)'==''">$(TargetFrameworks);net6.0-ios;net6.0-macos;net6.0-android;net6.0-maccatalyst</TargetFrameworks>
|
||||
<AllowedOutputExtensionsInPackageBuildOutputFolder>.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>portable</DebugType>
|
||||
|
@ -19,7 +20,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<Choose>
|
||||
<When Condition="'$(TargetFramework)'=='xamarinios10' or '$(TargetFramework)'=='monoandroid10.0' or '$(TargetFramework)'=='monoandroid11.0'">
|
||||
<When Condition="'$(TargetFramework)'=='xamarinios10' or '$(TargetFramework)'=='monoandroid10.0' or '$(TargetFramework)'=='monoandroid11.0' or $(TargetFramework.StartsWith('net6.0-'))">
|
||||
<ItemGroup>
|
||||
<IncludeXamlNamespaces Include="mobile" />
|
||||
<ExcludeXamlNamespaces Include="not_mobile" />
|
||||
|
@ -44,9 +45,9 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Uno.WinUI" Version="4.0.13" />
|
||||
<PackageReference Include="Uno.WinUI" Version="4.2.0-dev.515" />
|
||||
|
||||
<PackageReference Include="Uno.WinUI.Lottie" Version="4.0.13" Condition="'$(TargetFramework)'!='net5.0-windows10.0.18362'" />
|
||||
<PackageReference Include="Uno.WinUI.Lottie" Version="4.2.0-dev.515" Condition="'$(TargetFramework)'!='net5.0-windows10.0.18362' and !$(TargetFramework.StartsWith('net6.0-'))" />
|
||||
|
||||
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0" Condition="'$(TargetFramework)'=='net5.0-windows10.0.18362'" />
|
||||
|
||||
|
@ -86,14 +87,14 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Uno.UI" Version="4.0.13" />
|
||||
<PackageReference Include="Uno.UI" Version="4.2.0-dev.515" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(TargetFramework)'=='uap10.0.18362'">
|
||||
<PackageReference Include="Microsoft.UI.Xaml" Version="2.6.0-prerelease.210113001" />
|
||||
<PackageReference Include="Microsoft.Toolkit.Uwp.UI.Lottie" Version="6.1.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(TargetFramework)'!='uap10.0.18362'">
|
||||
<PackageReference Include="Uno.UI.Lottie" Version="4.0.13" />
|
||||
<PackageReference Include="Uno.UI.Lottie" Version="4.2.0-dev.515" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)'=='uap10.0.18362'">
|
||||
|
|
|
@ -283,11 +283,7 @@
|
|||
<Setter Target="FocusedOverlay.Opacity" Value="{StaticResource MaterialFocusedOpacity}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="FocusedOverlay.Opacity" Value="{StaticResource MaterialFocusedOpacity}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused" />
|
||||
<VisualState x:Name="Unfocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="FocusedOverlay.Opacity" Value="0" />
|
||||
|
@ -376,11 +372,7 @@
|
|||
<Setter Target="FocusedOverlay.Opacity" Value="{StaticResource MaterialFocusedOpacity}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="FocusedOverlay.Opacity" Value="{StaticResource MaterialFocusedOpacity}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused" />
|
||||
<VisualState x:Name="Unfocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="FocusedOverlay.Opacity" Value="0" />
|
||||
|
@ -471,11 +463,7 @@
|
|||
<Setter Target="FocusedOverlay.Opacity" Value="{StaticResource MaterialFocusedOpacity}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="Unfocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="FocusedOverlay.Opacity" Value="0" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="Unfocused" />
|
||||
</VisualStateGroup>
|
||||
</VisualStateManager.VisualStateGroups>
|
||||
<Border x:Name="CommonStatesOverlay" Background="{TemplateBinding Foreground}" Opacity="0" />
|
||||
|
@ -1350,11 +1338,7 @@
|
|||
<Setter Target="FocusRing.Opacity" Value="{StaticResource MaterialFocusedOpacity}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="FocusRing.Opacity" Value="{StaticResource MaterialFocusedOpacity}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused" />
|
||||
<VisualState x:Name="Unfocused" />
|
||||
</VisualStateGroup>
|
||||
</VisualStateManager.VisualStateGroups>
|
||||
|
@ -1943,11 +1927,7 @@
|
|||
<Setter Target="FabFocusBorder.Background" Value="{StaticResource MaterialOnSurfaceFocusedBrush}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="FabFocusBorder.Background" Value="{StaticResource MaterialOnSurfaceFocusedBrush}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused" />
|
||||
<VisualState x:Name="Unfocused" />
|
||||
</VisualStateGroup>
|
||||
<VisualStateGroup>
|
||||
|
@ -2029,11 +2009,7 @@
|
|||
<Setter Target="FabFocusBorder.Background" Value="{StaticResource MaterialOnSurfaceFocusedBrush}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="FabFocusBorder.Background" Value="{StaticResource MaterialOnSurfaceFocusedBrush}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused" />
|
||||
<VisualState x:Name="Unfocused" />
|
||||
</VisualStateGroup>
|
||||
</VisualStateManager.VisualStateGroups>
|
||||
|
@ -3411,7 +3387,9 @@
|
|||
<Setter Target="RootGrid.Background" Value="{ThemeResource MaterialMUXTopNavigationViewItemBackgroundPointerOver}" />
|
||||
<Setter Target="PointerRectangle.Fill" Value="{ThemeResource MaterialMUXNavigationViewItemBackgroundPointerOver}" />
|
||||
<Setter Target="Icon.Foreground" Value="{ThemeResource MaterialMUXTopNavigationViewItemForegroundPointerOver}" />
|
||||
<contract4Present:Setter Target="RootGrid.(media:RevealBrush.State)" Value="PointerOver" />
|
||||
<!--Removing RevealBrush usage for now as it is not present in WinUI 3-->
|
||||
<!--<contract4Present:Setter Target="RootGrid.(media:RevealBrush.State)"
|
||||
Value="PointerOver" />-->
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="Pressed">
|
||||
|
@ -3419,7 +3397,9 @@
|
|||
<Setter Target="RootGrid.Background" Value="{ThemeResource MaterialMUXTopNavigationViewItemBackgroundPressed}" />
|
||||
<Setter Target="PointerRectangle.Fill" Value="{ThemeResource MaterialMUXNavigationViewItemBackgroundPressed}" />
|
||||
<Setter Target="Icon.Foreground" Value="{ThemeResource MaterialMUXTopNavigationViewItemForegroundPressed}" />
|
||||
<contract4Present:Setter Target="RootGrid.(media:RevealBrush.State)" Value="Pressed" />
|
||||
<!--Removing RevealBrush usage for now as it is not present in WinUI 3-->
|
||||
<!--<contract4Present:Setter Target="RootGrid.(media:RevealBrush.State)"
|
||||
Value="Pressed" />-->
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="Disabled">
|
||||
|
@ -3460,7 +3440,9 @@
|
|||
<Setter Target="RootGrid.Background" Value="{ThemeResource MaterialMUXTopNavigationViewItemBackgroundPointerOver}" />
|
||||
<Setter Target="PointerRectangle.Fill" Value="{ThemeResource MaterialMUXNavigationViewItemBackgroundPointerOver}" />
|
||||
<Setter Target="Icon.Foreground" Value="{ThemeResource MaterialMUXTopNavigationViewItemForegroundPointerOver}" />
|
||||
<contract4Present:Setter Target="RootGrid.(media:RevealBrush.State)" Value="PointerOver" />
|
||||
<!--Removing RevealBrush usage for now as it is not present in WinUI 3-->
|
||||
<!--<contract4Present:Setter Target="RootGrid.(media:RevealBrush.State)"
|
||||
Value="PointerOver" />-->
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="Pressed">
|
||||
|
@ -3468,7 +3450,9 @@
|
|||
<Setter Target="RootGrid.Background" Value="{ThemeResource MaterialMUXTopNavigationViewItemBackgroundPressed}" />
|
||||
<Setter Target="PointerRectangle.Fill" Value="{ThemeResource MaterialMUXNavigationViewItemBackgroundPressed}" />
|
||||
<Setter Target="Icon.Foreground" Value="{ThemeResource MaterialMUXTopNavigationViewItemForegroundPressed}" />
|
||||
<contract4Present:Setter Target="RootGrid.(media:RevealBrush.State)" Value="Pressed" />
|
||||
<!--Removing RevealBrush usage for now as it is not present in WinUI 3-->
|
||||
<!--<contract4Present:Setter Target="RootGrid.(media:RevealBrush.State)"
|
||||
Value="Pressed" />-->
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="Disabled">
|
||||
|
@ -3701,7 +3685,9 @@
|
|||
<VisualState x:Name="Normal" />
|
||||
<VisualState x:Name="PointerOver">
|
||||
<VisualState.Setters>
|
||||
<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)" Value="PointerOver" />
|
||||
<!--Removing RevealBrush usage for now as it is not present in WinUI 3-->
|
||||
<!--<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)"
|
||||
Value="PointerOver" />-->
|
||||
<Setter Target="BackgroundBorder.Background" Value="{ThemeResource MaterialMUXNavigationViewItemBackgroundPointerOver}" />
|
||||
<Setter Target="RevealBorder.BorderBrush" Value="{ThemeResource MaterialMUXNavigationViewItemBorderBrushPointerOver}" />
|
||||
<Setter Target="Icon.Foreground" Value="{ThemeResource MaterialMUXNavigationViewItemForegroundPointerOver}" />
|
||||
|
@ -3710,7 +3696,9 @@
|
|||
</VisualState>
|
||||
<VisualState x:Name="Pressed">
|
||||
<VisualState.Setters>
|
||||
<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)" Value="Pressed" />
|
||||
<!--Removing RevealBrush usage for now as it is not present in WinUI 3-->
|
||||
<!--<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)"
|
||||
Value="Pressed" />-->
|
||||
<Setter Target="BackgroundBorder.Background" Value="{ThemeResource MaterialMUXNavigationViewItemBackgroundPressed}" />
|
||||
<Setter Target="RevealBorder.BorderBrush" Value="{ThemeResource MaterialMUXNavigationViewItemBorderBrushPressed}" />
|
||||
<Setter Target="Icon.Foreground" Value="{ThemeResource MaterialMUXNavigationViewItemForegroundPressed}" />
|
||||
|
@ -3727,7 +3715,9 @@
|
|||
</VisualState>
|
||||
<VisualState x:Name="PointerOverSelected">
|
||||
<VisualState.Setters>
|
||||
<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)" Value="PointerOver" />
|
||||
<!--Removing RevealBrush usage for now as it is not present in WinUI 3-->
|
||||
<!--<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)"
|
||||
Value="PointerOver" />-->
|
||||
<Setter Target="BackgroundBorder.Background" Value="{ThemeResource MaterialMUXNavigationViewItemBackgroundSelectedPointerOver}" />
|
||||
<Setter Target="RevealBorder.BorderBrush" Value="{ThemeResource MaterialMUXNavigationViewItemBorderBrushSelectedPointerOver}" />
|
||||
<Setter Target="Icon.Foreground" Value="{ThemeResource MaterialMUXNavigationViewItemForegroundSelectedPointerOver}" />
|
||||
|
@ -3736,7 +3726,9 @@
|
|||
</VisualState>
|
||||
<VisualState x:Name="PressedSelected">
|
||||
<VisualState.Setters>
|
||||
<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)" Value="Pressed" />
|
||||
<!--Removing RevealBrush usage for now as it is not present in WinUI 3-->
|
||||
<!--<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)"
|
||||
Value="Pressed" />-->
|
||||
<Setter Target="BackgroundBorder.Background" Value="{ThemeResource MaterialMUXNavigationViewItemBackgroundSelectedPressed}" />
|
||||
<Setter Target="RevealBorder.BorderBrush" Value="{ThemeResource MaterialMUXNavigationViewItemBorderBrushSelectedPressed}" />
|
||||
<Setter Target="Icon.Foreground" Value="{ThemeResource MaterialMUXNavigationViewItemForegroundSelectedPressed}" />
|
||||
|
@ -3948,7 +3940,9 @@
|
|||
<Setter Target="LayoutRoot.Background" Value="{ThemeResource MaterialMUXTopNavigationViewItemBackgroundPointerOver}" />
|
||||
<Setter Target="PointerRectangle.Fill" Value="{ThemeResource MaterialMUXNavigationViewItemBackgroundPointerOver}" />
|
||||
<Setter Target="Icon.Foreground" Value="{ThemeResource MaterialMUXTopNavigationViewItemForegroundPointerOver}" />
|
||||
<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)" Value="PointerOver" />
|
||||
<!--Removing RevealBrush usage for now as it is not present in WinUI 3-->
|
||||
<!--<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)"
|
||||
Value="PointerOver" />-->
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="Pressed">
|
||||
|
@ -3956,7 +3950,9 @@
|
|||
<Setter Target="LayoutRoot.Background" Value="{ThemeResource MaterialMUXTopNavigationViewItemBackgroundPressed}" />
|
||||
<Setter Target="PointerRectangle.Fill" Value="{ThemeResource MaterialMUXNavigationViewItemBackgroundPressed}" />
|
||||
<Setter Target="Icon.Foreground" Value="{ThemeResource MaterialMUXTopNavigationViewItemForegroundPressed}" />
|
||||
<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)" Value="Pressed" />
|
||||
<!--Removing RevealBrush usage for now as it is not present in WinUI 3-->
|
||||
<!--<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)"
|
||||
Value="Pressed" />-->
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="Selected">
|
||||
|
@ -3971,7 +3967,9 @@
|
|||
<Setter Target="LayoutRoot.Background" Value="{ThemeResource MaterialMUXTopNavigationViewItemBackgroundPointerOver}" />
|
||||
<Setter Target="PointerRectangle.Fill" Value="{ThemeResource MaterialMUXNavigationViewItemBackgroundSelectedPointerOver}" />
|
||||
<Setter Target="Icon.Foreground" Value="{ThemeResource MaterialMUXTopNavigationViewItemForegroundPointerOver}" />
|
||||
<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)" Value="PointerOver" />
|
||||
<!--Removing RevealBrush usage for now as it is not present in WinUI 3-->
|
||||
<!--<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)"
|
||||
Value="PointerOver" />-->
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PressedSelected">
|
||||
|
@ -3979,7 +3977,9 @@
|
|||
<Setter Target="LayoutRoot.Background" Value="{ThemeResource MaterialMUXTopNavigationViewItemBackgroundPressed}" />
|
||||
<Setter Target="PointerRectangle.Fill" Value="{ThemeResource MaterialMUXNavigationViewItemBackgroundSelectedPressed}" />
|
||||
<Setter Target="Icon.Foreground" Value="{ThemeResource MaterialMUXTopNavigationViewItemForegroundPressed}" />
|
||||
<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)" Value="Pressed" />
|
||||
<!--Removing RevealBrush usage for now as it is not present in WinUI 3-->
|
||||
<!--<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)"
|
||||
Value="Pressed" />-->
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
|
@ -4036,7 +4036,9 @@
|
|||
<Setter Target="PointerRectangle.Fill" Value="{ThemeResource MaterialMUXNavigationViewItemBackgroundPointerOver}" />
|
||||
<Setter Target="Icon.Foreground" Value="{ThemeResource MaterialMUXTopNavigationViewItemForegroundPointerOver}" />
|
||||
<Setter Target="ContentPresenter.Foreground" Value="{ThemeResource MaterialMUXTopNavigationViewItemForegroundPointerOver}" />
|
||||
<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)" Value="PointerOver" />
|
||||
<!--Removing RevealBrush usage for now as it is not present in WinUI 3-->
|
||||
<!--<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)"
|
||||
Value="PointerOver" />-->
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="Pressed">
|
||||
|
@ -4045,7 +4047,9 @@
|
|||
<Setter Target="PointerRectangle.Fill" Value="{ThemeResource MaterialMUXNavigationViewItemBackgroundPressed}" />
|
||||
<Setter Target="Icon.Foreground" Value="{ThemeResource MaterialMUXTopNavigationViewItemForegroundPressed}" />
|
||||
<Setter Target="ContentPresenter.Foreground" Value="{ThemeResource MaterialMUXTopNavigationViewItemForegroundPressed}" />
|
||||
<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)" Value="Pressed" />
|
||||
<!--Removing RevealBrush usage for now as it is not present in WinUI 3-->
|
||||
<!--<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)"
|
||||
Value="Pressed" />-->
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="Selected">
|
||||
|
@ -4062,7 +4066,9 @@
|
|||
<Setter Target="PointerRectangle.Fill" Value="{ThemeResource MaterialMUXNavigationViewItemBackgroundSelectedPointerOver}" />
|
||||
<Setter Target="Icon.Foreground" Value="{ThemeResource MaterialMUXTopNavigationViewItemForegroundPointerOver}" />
|
||||
<Setter Target="ContentPresenter.Foreground" Value="{ThemeResource MaterialMUXTopNavigationViewItemForegroundPointerOver}" />
|
||||
<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)" Value="PointerOver" />
|
||||
<!--Removing RevealBrush usage for now as it is not present in WinUI 3-->
|
||||
<!--<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)"
|
||||
Value="PointerOver" />-->
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PressedSelected">
|
||||
|
@ -4071,7 +4077,9 @@
|
|||
<Setter Target="PointerRectangle.Fill" Value="{ThemeResource MaterialMUXNavigationViewItemBackgroundSelectedPressed}" />
|
||||
<Setter Target="Icon.Foreground" Value="{ThemeResource MaterialMUXTopNavigationViewItemForegroundPressed}" />
|
||||
<Setter Target="ContentPresenter.Foreground" Value="{ThemeResource MaterialMUXTopNavigationViewItemForegroundPressed}" />
|
||||
<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)" Value="Pressed" />
|
||||
<!--Removing RevealBrush usage for now as it is not present in WinUI 3-->
|
||||
<!--<contract4Present:Setter Target="LayoutRoot.(media:RevealBrush.State)"
|
||||
Value="Pressed" />-->
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
|
@ -6101,11 +6109,7 @@
|
|||
<Setter Target="FocusRing.Opacity" Value="{StaticResource MaterialFocusedOpacity}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="FocusRing.Opacity" Value="{StaticResource MaterialFocusedOpacity}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused" />
|
||||
<VisualState x:Name="Unfocused" />
|
||||
</VisualStateGroup>
|
||||
</VisualStateManager.VisualStateGroups>
|
||||
|
@ -7003,11 +7007,7 @@
|
|||
<Setter Target="FocusedOverlay.Opacity" Value="1" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="FocusedOverlay.Opacity" Value="1" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused" />
|
||||
<VisualState x:Name="Unfocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="FocusedOverlay.Opacity" Value="0" />
|
||||
|
@ -7127,11 +7127,12 @@
|
|||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||
<Setter Property="Foreground" Value="{StaticResource MaterialToggleSwitchOnButtonBrush}" />
|
||||
<!-- microsoft/microsoft-ui-xaml#6157: reset min-width inherited from base style -->
|
||||
<Setter Property="MinWidth" Value="NaN" />
|
||||
<Setter Property="MinWidth" Value="70" />
|
||||
<Setter Property="Padding" Value="9,0,10,0" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="ToggleSwitch">
|
||||
<StackPanel Padding="{TemplateBinding Padding}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" BorderThickness="{TemplateBinding BorderThickness}" HorizontalAlignment="Stretch">
|
||||
<StackPanel Padding="{TemplateBinding Padding}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" HorizontalAlignment="Stretch">
|
||||
<!-- The margin here is used to properly align the content with the UI switch -->
|
||||
<ContentPresenter x:Name="ContentPresenter" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" Foreground="{StaticResource MaterialOnBackgroundBrush}" VerticalAlignment="Stretch" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" Visibility="{Binding Header, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource MaterialEmptyToCollapsed},TargetNullValue=Collapsed}" Margin="0,8,0,5" />
|
||||
<!-- Do not add x:Name to BindableUiSwitch or else page will not load -->
|
||||
|
@ -7148,11 +7149,11 @@
|
|||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||
<Setter Property="MinHeight" Value="25" />
|
||||
<!-- microsoft/microsoft-ui-xaml#6157: reset min-width inherited from base style -->
|
||||
<Setter Property="MinWidth" Value="NaN" />
|
||||
<Setter Property="MinWidth" Value="70" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="ToggleSwitch">
|
||||
<Grid Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" BorderThickness="{TemplateBinding BorderThickness}" HorizontalAlignment="Stretch" Padding="{TemplateBinding Padding}">
|
||||
<Grid Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" HorizontalAlignment="Stretch" Padding="{TemplateBinding Padding}">
|
||||
<VisualStateManager.VisualStateGroups>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualState x:Name="Normal" />
|
||||
|
@ -7297,7 +7298,7 @@
|
|||
<Setter Property="Foreground" Value="{StaticResource MaterialToggleSwitchOnButtonBrush}" />
|
||||
<Setter Property="Background" Value="{StaticResource MaterialToggleSwitchOnBackgroundBrush}" />
|
||||
<!-- microsoft/microsoft-ui-xaml#6157: reset min-width inherited from base style -->
|
||||
<Setter Property="MinWidth" Value="NaN" />
|
||||
<Setter Property="MinWidth" Value="70" />
|
||||
<Setter Property="HorizontalAlignment" Value="Left" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
||||
|
@ -7348,12 +7349,7 @@
|
|||
<Setter Target="SwitchKnobOffShadow.Opacity" Value="0.2" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="SwitchKnobOnShadow.Opacity" Value="0.2" />
|
||||
<Setter Target="SwitchKnobOffShadow.Opacity" Value="0.2" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerFocused" />
|
||||
<VisualState x:Name="Unfocused">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="SwitchKnobOnShadow.Opacity" Value="0" />
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<Project Sdk="MSBuild.Sdk.Extras/3.0.23">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0;xamarinios10;monoandroid11.0;xamarinmac20</TargetFrameworks>
|
||||
<TargetFrameworks Condition="'$(DisableNet6MobileTargets)'==''">$(TargetFrameworks);net6.0-ios;net6.0-macos;net6.0-android;net6.0-maccatalyst</TargetFrameworks>
|
||||
<AllowedOutputExtensionsInPackageBuildOutputFolder>.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>portable</DebugType>
|
||||
|
@ -21,7 +22,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<Choose>
|
||||
<When Condition="'$(TargetFramework)'=='xamarinios10' or '$(TargetFramework)'=='monoandroid10.0' or '$(TargetFramework)'=='monoandroid11.0'">
|
||||
<When Condition="'$(TargetFramework)'=='xamarinios10' or '$(TargetFramework)'=='monoandroid10.0' or '$(TargetFramework)'=='monoandroid11.0' or $(TargetFramework.StartsWith('net6.0-'))">
|
||||
<ItemGroup>
|
||||
<IncludeXamlNamespaces Include="mobile" />
|
||||
<ExcludeXamlNamespaces Include="not_mobile" />
|
||||
|
@ -55,9 +56,9 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Uno.WinUI" Version="4.0.13" />
|
||||
<PackageReference Include="Uno.WinUI" Version="4.2.0-dev.515" />
|
||||
|
||||
<PackageReference Include="Uno.WinUI.Lottie" Version="4.0.13" Condition="'$(TargetFramework)'!='net5.0-windows10.0.18362'" />
|
||||
<PackageReference Include="Uno.WinUI.Lottie" Version="4.2.0-dev.515" Condition="'$(TargetFramework)'!='net5.0-windows10.0.18362'" />
|
||||
|
||||
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0" Condition="'$(TargetFramework)'=='net5.0-windows10.0.18362'" />
|
||||
|
||||
|
@ -99,14 +100,14 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Uno.UI" Version="4.0.13" />
|
||||
<PackageReference Include="Uno.UI" Version="4.2.0-dev.515" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(TargetFramework)'=='uap10.0.18362'">
|
||||
<PackageReference Include="Microsoft.UI.Xaml" Version="2.6.0-prerelease.210113001" />
|
||||
<PackageReference Include="Microsoft.Toolkit.Uwp.UI.Lottie" Version="6.1.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(TargetFramework)'!='uap10.0.18362'">
|
||||
<PackageReference Include="Uno.UI.Lottie" Version="4.0.13" />
|
||||
<PackageReference Include="Uno.UI.Lottie" Version="4.2.0-dev.515" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
|
|
|
@ -88,14 +88,14 @@
|
|||
<PackageReference Include="Uno.ShowMeTheXAML.MSBuild">
|
||||
<Version>1.0.59</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Uno.UI" Version="4.0.13" />
|
||||
<PackageReference Include="Uno.UI.RemoteControl" Version="4.0.13" Condition="'$(Configuration)'=='Debug'" />
|
||||
<PackageReference Include="Uno.UI" Version="4.2.0-dev.515" />
|
||||
<PackageReference Include="Uno.UI.RemoteControl" Version="4.2.0-dev.515" Condition="'$(Configuration)'=='Debug'" />
|
||||
<PackageReference Include="Uno.UniversalImageLoader" Version="1.9.35" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Filter" Version="1.1.1" />
|
||||
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData" Version="2.1.0" />
|
||||
<PackageReference Include="Xamarin.AndroidX.AppCompat.AppCompatResources" Version="1.1.0.2" />
|
||||
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.0.13" />
|
||||
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.2.0-dev.515" />
|
||||
<PackageReference Include="Uno.Core.Extensions.Compatibility" Version="4.0.1" />
|
||||
<PackageReference Include="Uno.Core.Extensions.Disposables" Version="4.0.1" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -41,9 +41,9 @@
|
|||
</PackageReference>
|
||||
<PackageReference Include="Uno.ShowMeTheXAML" Version="1.0.59" />
|
||||
<PackageReference Include="Uno.ShowMeTheXAML.MSBuild" Version="1.0.59" />
|
||||
<PackageReference Include="Uno.UI.Skia.Gtk" Version="4.0.13" />
|
||||
<PackageReference Include="Uno.UI.RemoteControl" Version="4.0.13" Condition="'$(Configuration)'=='Debug'" />
|
||||
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.0.13" />
|
||||
<PackageReference Include="Uno.UI.Skia.Gtk" Version="4.2.0-dev.515" />
|
||||
<PackageReference Include="Uno.UI.RemoteControl" Version="4.2.0-dev.515" Condition="'$(Configuration)'=='Debug'" />
|
||||
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.2.0-dev.515" />
|
||||
<PackageReference Include="Uno.Core.Extensions.Compatibility" Version="4.0.1" />
|
||||
<PackageReference Include="Uno.Core.Extensions.Disposables" Version="4.0.1" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -37,9 +37,9 @@
|
|||
<Version>1.0.59</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Uno.UI">
|
||||
<Version>4.0.13</Version>
|
||||
<Version>4.2.0-dev.515</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.0.13" />
|
||||
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.2.0-dev.515" />
|
||||
<PackageReference Include="Uno.Core.Extensions.Compatibility" Version="4.0.1" />
|
||||
<PackageReference Include="Uno.Core.Extensions.Disposables" Version="4.0.1" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -53,9 +53,9 @@
|
|||
</PackageReference>
|
||||
<PackageReference Include="Uno.ShowMeTheXAML" Version="1.0.59" />
|
||||
<PackageReference Include="Uno.ShowMeTheXAML.MSBuild" Version="1.0.59" />
|
||||
<PackageReference Include="Uno.UI.RemoteControl" Version="4.0.13" Condition="'$(Configuration)'=='Debug'" />
|
||||
<PackageReference Include="Uno.UI.WebAssembly" Version="4.0.13" />
|
||||
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.0.13" />
|
||||
<PackageReference Include="Uno.UI.RemoteControl" Version="4.2.0-dev.515" Condition="'$(Configuration)'=='Debug'" />
|
||||
<PackageReference Include="Uno.UI.WebAssembly" Version="4.2.0-dev.515" />
|
||||
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.2.0-dev.515" />
|
||||
<PackageReference Include="Uno.Core.Extensions.Compatibility" Version="4.0.1" />
|
||||
<PackageReference Include="Uno.Core.Extensions.Disposables" Version="4.0.1" />
|
||||
<PackageReference Include="Uno.Wasm.Bootstrap" Version="3.1.3" />
|
||||
|
|
|
@ -190,11 +190,11 @@
|
|||
<PackageReference Include="Uno.ShowMeTheXAML.MSBuild">
|
||||
<Version>1.0.59</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Uno.UI" Version="4.0.13" />
|
||||
<PackageReference Include="Uno.UI.RemoteControl" Version="4.0.13" Condition="'$(Configuration)'=='Debug'" />
|
||||
<PackageReference Include="Uno.UI" Version="4.2.0-dev.515" />
|
||||
<PackageReference Include="Uno.UI.RemoteControl" Version="4.2.0-dev.515" Condition="'$(Configuration)'=='Debug'" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Filter" Version="1.1.1" />
|
||||
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.0.13" />
|
||||
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.2.0-dev.515" />
|
||||
<PackageReference Include="Uno.Core.Extensions.Compatibility" Version="4.0.1" />
|
||||
<PackageReference Include="Uno.Core.Extensions.Disposables" Version="4.0.1" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -84,17 +84,17 @@
|
|||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Uno.UI.RemoteControl" Version="4.0.13" Condition="'$(Configuration)'=='Debug'" />
|
||||
<PackageReference Include="Uno.UI.RemoteControl" Version="4.2.0-dev.515" Condition="'$(Configuration)'=='Debug'" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Filter" Version="1.1.1" />
|
||||
<PackageReference Include="Uno.UI" Version="4.0.13" />
|
||||
<PackageReference Include="Uno.UI" Version="4.2.0-dev.515" />
|
||||
<PackageReference Include="Uno.ShowMeTheXAML.MSBuild">
|
||||
<Version>1.0.59</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Uno.ShowMeTheXAML">
|
||||
<Version>1.0.59</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.0.13" />
|
||||
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.2.0-dev.515" />
|
||||
<PackageReference Include="Uno.Core.Extensions.Compatibility" Version="4.0.1" />
|
||||
<PackageReference Include="Uno.Core.Extensions.Disposables" Version="4.0.1" />
|
||||
</ItemGroup>
|
||||
|
|
Загрузка…
Ссылка в новой задаче