Граф коммитов

15673 Коммитов

Автор SHA1 Сообщение Дата
Vignesh-SF3580 36994dcf18
23152 - Moving one item between groups of a Grouped CollectionView results in the temporary fading out of two items instead of one on Android (#24461) 2024-08-28 11:56:55 +01:00
Rui Marinho add674efc8
Update arcade (#24473) 2024-08-28 11:34:42 +01:00
Gerald Versluis 0ec9b63ccf
Remove excessive Application API docs (#24427) 2024-08-27 17:03:43 -05:00
Shane Neuville fb66a9a204
[net9.0] Merge main to net9.0 (#24474)
### Description of Change

Bring latest changes from main to net9.0 branch
2024-08-27 17:02:56 -05:00
TJ Lambert 588eeceea1
[iOS] Fix Button image sizing and layout (#22476) 2024-08-27 14:54:17 -05:00
Jonathan Peppers 1b0014048d
[resizetizer] fix a build performance issue (#24453)
I was testing a .NET MAUI project template in Visual Studio on a
Windows DevBox, and I noticed a target taking *a lot* of time:

    ResizetizeImages 1.302s
    Skipping target "ResizetizeImages" because all output files are up-to-date with respect to the input files.

This is happening on incremental builds with no changes. This is even
worse for Android, because it runs twice: one for build and one for
deploy.

The `ResizetizeImages` MSBuild target is *skipped*, why is it slow?!?

To "debug" this, I added this ugly, one-liner between every
`<ItemGroup>` in the target:

    <ItemGroup>
      </ItemGroup><PropertyGroup><_Time>$([System.DateTime]::Now.ToString('THH:mm:ss.fffffffZ'))</_Time></PropertyGroup><ItemGroup>
      <_MauiImageToProcess Include="@(MauiImage)" Exclude="$(DefaultItemExcludes)" />
      </ItemGroup><PropertyGroup><_Time>$([System.DateTime]::Now.ToString('THH:mm:ss.fffffffZ'))</_Time></PropertyGroup><ItemGroup>
      <!-- more item groups -->
      </ItemGroup><PropertyGroup><_Time>$([System.DateTime]::Now.ToString('THH:mm:ss.fffffffZ'))</_Time></PropertyGroup><ItemGroup>
    </ItemGroup>

(I found the `/profileevaluation` switch didn't help me here)

This led me to find the problematic line, is this one:

    <_MauiImageToProcess Include="@(MauiImage)" Exclude="$(DefaultItemExcludes)" />

Where `$(DefaultItemExcludes)` is:

    DefaultItemExcludes = ;bin\Debug\/**;obj\Debug\/**;bin\/**;obj\/**;**/*.user;**/*.*proj;**/*.sln;**/*.vssscc;**/.DS_Store

This was introduced in a92fd1d8 to fix `.DS_Store` files in the folder:

    <MauiImage Include="Resources\Images\*" />

(This is in the .NET MAUI project template).

What is happening is:

* MSBuild expands these 9 wildcards to a lot of files

* MSBuild now has to filter out the files that are in `@(MauiImage)`

If I simply reduce this to:

    <_MauiImageToProcess Include="@(MauiImage)" Exclude="**/.DS_Store" />

It still takes 177ms after this change, because MSBuild has to
do a recursive file listing of the current project.

So, we can do better. We can use `Condition` instead:

    <_MauiImageToProcess Include="@(MauiImage)" Condition=" '%(FileName)%(Extension)' != '.DS_Store' " />

After these changes, the target now takes:

    ResizetizeImages 6ms

I can't think of what this would break, as I don't think any of these
files are in `Resources\Images`:

    DefaultItemExcludes = ;bin\Debug\/**;obj\Debug\/**;bin\/**;obj\/**;**/*.user;**/*.*proj;**/*.sln;**/*.vssscc;**/.DS_Store

The only problem I can think of would be if someone sets
`$(DefaultItemExcludes)` to a custom value, and I think saving the
build time is worth it.
2024-08-27 12:12:24 -05:00
dustin-wojciechowski 033b01abb2
[Testing] CollectionViewInfiniteScroll Conversion to UI Test (#24411)
* Initial Commit

* Solved issue of automation id not picking up

* Renamed files, set correct issue text

* Removed unnecessary variables, comments

* Disabled test for Catalyst as well

* Fixed previous

* Added MovedToAppium tag for original test
2024-08-27 11:24:16 -05:00
Rui Marinho d9f2257965 Merge branch 'main' into merge-main-net9 2024-08-27 16:41:19 +01:00
Artem Valieiev d93e48dd02
[iOS] Bugfix/22469 ios label crash (#22487)
* Add UI test

* Update RecalculateSpanPositions

* Update UI test to make it crash regardless of testing iOS device

* Always use original textContainer

* Revert "Always use original textContainer"

This reverts commit f0bf613f6e985b6f618cf22262e1c49948e99201.

* Always use original text container

* change the test to the correct issue and delete extra files that may have happened in the rebase

* remove local uitest changes

* remove linq and change back to correct issue number

---------

Co-authored-by: tj-devel709 <tj.devel709@gmail.com>
2024-08-27 15:40:53 +00:00
Šimon Rozsíval e2427dfad6
[XC] Fallback to reflection-based bindings for bindings with "invalid" path (#24238)
* Add test

* Skip binding compilation when path cannot be matched to the data type

* Update outdated tests

* Do not treat XC0045 as error in Xaml.UnitTests
2024-08-27 09:37:13 -05:00
Rui Marinho 88652454e0
[net9.0] Fix API23 Core device tests (#24128)
* - fix up for release on some device tests but not all yet

* - fix

* - options

* Update device-tests-steps.yml

* - try me

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
2024-08-27 15:29:20 +01:00
Rui Marinho ea92461940
[net9.0] Move packages to rc2 (#24460)
* Move packages to rc2

* Fix build with missing feeds
2024-08-27 14:55:05 +01:00
Rui Marinho 9e10f5e776
This test wasn t fixed yet (#24470) 2024-08-27 14:50:16 +01:00
BagavathiPerumal bae06d325a
[Windows] Fix Entry clear button is not taking the color of the text. (#24196)
* fix-19152-Fixed the Clear Button Color issue by adding the clear button keys in TextColorResourceKeys list.

* added UITest - 19152

* Fix-19152-Output images added.

* Fix-19152-Updated Automation ID and test method name.

* Fix-19152-Updated Automation ID.

* Fix-19152-Updated the test image based on the Test method name.
2024-08-27 13:23:47 +00:00
Jeremi Kurdek d70941d218
[Binding SG] Fix formatting (#24442)
* Fix formatting

* Make trailing newline consistent

* Fix formatting in tests
2024-08-27 11:24:04 +01:00
NanthiniMahalingam aa1632a285
Fixed the CollectionView GroupFooterTemplate crashes the application (#24205)
* Added the UI test for collection view group footer template crash issue.

* Updated the variable name

* Added the output image

* Added the snapshot for windows platform.
2024-08-26 16:28:26 -05:00
Jonathan Peppers 1088f05004
[net9.0] Android RC 1 build, with feeds (#24445)
Changes: e70ae00c...03392836
Context: https://github.com/dotnet/android/commit/bc56b3a8

.NET Android is now using Maestro to push stable-branded builds, and
so a new feed is required for now.

At some point, we can setup a `Microsoft.Android.NET9` and
`Microsoft.Android.NET8` pack that would make it possible to track
*both* .NET 8 & 9 and Maestro could manage the feeds.
2024-08-26 18:06:31 +01:00
Rui Marinho f2f841ba94
[net9.0] Fix loop CarouselViewHandler2 (#24230)
* [iOS] Load the correct loop source for carouselview

* [iOS] Add mapper for CarouselViewHandler

* [tests] Enable new handlers

* We need a CarouselViewHandler2 base

* [iOS] Fix no ItemTemplate CollectionView2

* [iOS] When we detach make sure to reset state of InitialPosition

* [iOS] Fix ScrollTo correct item with CarouselView loop

* [iOS] Enable CV2 mappers for Header and Footer and SelectedItems

* Fix public api catalyst

* [iOS] Make sure to arrange and layout header

* [iOS] Handling global Header and Footer with UICollectionViewCompositionalLayout

* [iOS] Disable code to size CollectionView2

* Add UIContainerView2

* Update test image

* Fix test

* [iOS] Make less api changes for now

* Try fix build

* Fix public api

* Try updateintialposition earlier

* Fix tests

* [tests] Dont use new handlers for CollectionView2
2024-08-26 18:06:16 +01:00
Rui Marinho c1d3fb16da
[ci] Update push-nightly.yml (#24438)
* Update push-nightly.yml

* Update push-nightly.yml
2024-08-26 17:03:46 +01:00
Gerald Versluis ea3f76ea66
Remove Xamarin.Forms repo link in issue template (#24426) 2024-08-25 23:07:18 +01:00
MartyIX 4051892181
Add support for `TextAlignment.Justify` - fix (#24376) 2024-08-24 17:16:27 -05:00
Eilon Lipton 01cd6c618f
Use more compatible code for HybridWebView tests (#24408)
1. Use code that runs on older Android browsers to wait for web view to be ready
2. When waiting, wait a lot longer
2024-08-24 23:15:07 +01:00
Shane Neuville 807eff138c
Add Styleable Element to simplify styling for external libraries (#24387) 2024-08-24 17:14:08 -05:00
Jakub Florkowski c1566589d1
[iOS] Readonly Editor - Scrolling fix (#20505)
---------

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2024-08-24 20:37:22 +08:00
Shane Neuville c6cfbc74db
Obsolete Compatibility.Layout (#24342)
* Obsolete Compatibility.Layout

* - fix

* - fix

* - add public APIs

* Update PublicAPI.Unshipped.txt

* - remove Invalidate Arrange
2024-08-24 20:10:16 +08:00
Rui Marinho ad8275e2bb
Merge main into net9.0 (#24398)
### Description of Change

We all know the drill!
2024-08-23 21:42:28 +01:00
Daniel Hindrikes a15cf9b55a
Fixed FlyoutItemIsVisible is not working with bindings (#24212)
* Fixed FlyoutItemIsVisible is n ot working with bindings

* Correct method naming for OnFlyoutItemIsVisibleChanged

* FlyoutItemIsVisible attached property should update bindable property for FlyoutItemIsVisible in BaseShellItem

---------

Co-authored-by: Daniel Hindrikes <daniel.hindrikes@cab.se>
2024-08-23 14:19:09 -05:00
Jakub Florkowski d951f76c54
[Testing] moved FlyoutHeaderAdaptsToMinimumHeight to appium (#24294)
* [Testing] moved FlyoutHeaderAdaptsToMinimumHeight to appium

* Windows test fix

* Test improvement
2024-08-23 18:59:10 +00:00
NirmalKumarYuvaraj ebf760463b
[Android] Fix for Entry SelectionLength (#24064)
* fix-18443-SelectionLength Property Not Applied to Entry at Runtime

* Added UI test for 18443

* Modified the test case

* Modified test file

* Modified TestCases.Shared.Tests/Tests/Issues/Issue18443.cs

* Modified test file

* Modified test case

* Added image for Entry test
2024-08-23 10:34:11 -05:00
Matthew Leibowitz eeafab4a0b Merge branch 'main' into merge-main-net9 2024-08-23 19:15:12 +08:00
Shane Neuville 23ccf19441
Merge main into net9.0 (#24385)
### Description of Change

Merge main into net9.0
2024-08-22 19:01:11 -05:00
Shane Neuville 2aca52006a
Merge SR8 into main (#24382) 2024-08-22 15:32:19 -05:00
Morten Nielsen b1e4bd92ff
Remove non-functioning code and instead throw a more helpful platform-not-supported error (#23617)
* Remove non-functioning code and instead throw a more helpful platform-not-supported error

Also mark the APIs not supported on Windows.

* Fix build failures

* Update tests for new webauth behavior
2024-08-23 02:18:51 +08:00
Tamilarasan Paranthaman 7818450b5a
[Android] Fix ToolbarItem font color issue after changing available state. (#24065)
* [Android] ToolbarItem font color issue.

* Added UI Tests.

* Modified the test case.

* Updated the test cases.

* Commit for test cases change

* Modified the test samples.

* Modified the test samples.

* Images have been added.

---------

Co-authored-by: Suthi <suthi.yuvaraj@syncfusion.com>
2024-08-22 13:10:08 -05:00
Rui Marinho 4626f423be
[net9.0] Update packages rc1 (#24371)
* Update sdk

* Update aspnet and extensions

* Update arcade and xharness
2024-08-22 17:50:22 +01:00
Gerald Versluis 80b6185b4c
Remove excessive ListView API doc (#24327) 2024-08-22 11:26:11 -05:00
Matthew Leibowitz ea2a01a523 Merge branch 'main-merge' into merge-main-net9
# Conflicts:
#	eng/Version.Details.xml
#	eng/Versions.props
#	eng/pipelines/common/ui-tests-build-sample.yml
#	src/Controls/tests/Xaml.UnitTests/BindingsCompiler.xaml.cs
#	src/TestUtils/src/Microsoft.Maui.IntegrationTests/Utilities/BuildWarningsUtilities.cs
2024-08-22 23:29:30 +08:00
Matthew Leibowitz 879aaf5b36 Revert "Backport maestro and artifact drop infra improvements from net9.0 (#24247)"
This reverts commit b57d6642da.
2024-08-22 23:23:07 +08:00
Shane Neuville 76ede63793 Merge remote-tracking branch 'origin/release/8.0.1xx-sr8' into merge_sr8
# Conflicts:
#	eng/Versions.props
2024-08-22 09:20:58 -05:00
dotnet-maestro[bot] 2815ad956f
Update dependencies from https://github.com/dotnet/xharness build 20240820.3 (#24362)
Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Common , Microsoft.DotNet.XHarness.TestRunners.Xunit
 From Version 9.0.0-prerelease.24405.1 -> To Version 9.0.0-prerelease.24420.3

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-08-22 11:04:15 +01:00
Mike Corsaro 9020670806
Fix "XamlC error: key was not present in the dictionary" when `OnIdiom` is used in… (#24367)
* Fix "key was not present in the dictionary" when `OnIdiom` is used in `OnPlatform`

* Add test

---------

Co-authored-by: Mike Corsaro <mikecorsaro@microsoft.com>
2024-08-22 08:15:25 +00:00
Vignesh-SF3580 52386b8e5d
[Windows] Fix Span Foreground property (#24063)
* 23448 - Span text-decoration is incorrect whereas the Label behaves properly.

* added UITest - 23488

* AutomationId added.

* updated namespace properly.

* Output images added.
2024-08-22 09:31:58 +02:00
Matthew Leibowitz 11aa1bdaf0
Merge `main` into `net9.0` (#24341)
### Description of Change

Update the net9.0 branch with all the latest things.
2024-08-22 06:12:32 +08:00
dotnet-maestro[bot] 79bdab0011
Update dependencies from https://github.com/dotnet/android build 9.0.0-rc.1.24420.1+azdo.10077646 (#24352)
Microsoft.Android.Sdk.Windows
 From Version 35.0.0-rc.1.49 -> To Version 35.0.0-rc.1.69

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-08-21 21:59:03 +01:00
Rui Marinho cbd0f3c827
[net9.0] Update sdk and aspnet rc1 (#24348)
* Update sdk

* Update aspnet and extensions

* Update NuGet.config
2024-08-21 21:58:37 +01:00
Matthew Leibowitz cd0266999e Use the correct .NET version 2024-08-22 02:17:10 +08:00
Matthew Leibowitz f129f6edda Merge remote-tracking branch 'origin/net9.0' into merge-main-net9 2024-08-22 01:23:21 +08:00
Matthew Leibowitz 50037de4d9 Merge branch 'main' into merge-main-net9
# Conflicts:
#	eng/pipelines/common/ui-tests-build-sample.yml
#	src/Core/src/Core.csproj
2024-08-22 01:22:53 +08:00
Liz Hare 937f410889
2174059 MAUI hit testing ignores pages loaded by PushModalAsync (#24109)
* MAUI hit testing ignores pages loaded by PushModalAsync

Updated VisualTreeElementExtension to get the MauiWinUiWindow Element, as its content member gets modal content in addition to underlying content

* PR Feedback

Update the code to use the UI.Xaml.Window instead of the MauiWinUIWindow
2024-08-22 00:12:50 +08:00
Shane Neuville a659b185d3
Release Versioning for 8.0.81 (#24359) 2024-08-21 10:16:57 -05:00