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

16046 Коммитов

Автор SHA1 Сообщение Дата
Mike Corsaro fa519a2c9c
[Windows] Fix crash when navigating pages (#25740)
### Description of Change

Fixes a long-standing crash when navigating pages:

1. Manually clear the `ContentPresenter.Content` property.

When navigating pages it was discovered that the `Content` property of
the `ContentPresenter` sometimes was not being detached from the parent
`ContentPresenter` (the `ContentPresenter` itself does detach from the
Page). A workaround for this was to manually clear the `Content`
property.

**The actual cause of this bug:** I suspect that something causing the
lifecycle tracking to be messed up. I'm still not sure what this is, but
for now this will help our customers more than nothing.

## Workaround

The following can be used as a workaround. Place it in the `Loaded`
event for your `AppShell`:

```csharp
private void AppShell_Loaded(object? sender, EventArgs e)
{
    Loaded -= AppShell_Loaded;

#if WINDOWS
    if (Handler != null && Handler.PlatformView is ShellView shellView &&
        shellView.Content is MauiNavigationView nv &&
        nv.Content is Microsoft.UI.Xaml.Controls.Frame frame)
    {
        frame.Navigating += (s, e) =>
        {
            if (frame.Content is Microsoft.UI.Xaml.Controls.Page page)
            {
                page.Unloaded += PageUnloaded;

                void PageUnloaded(object sender, Microsoft.UI.Xaml.RoutedEventArgs e)
                {
                    page.Unloaded -= PageUnloaded;
                    if (page.Content is Microsoft.UI.Xaml.Controls.ContentPresenter presenter)
                    {
                        presenter.Content = null;
                    }
                };
            }
        };
    }
#endif
}
```

### Issues Fixed

Fixes #22790 #18441 #22131
2024-11-19 09:35:25 -08:00
Jakub Florkowski 6b00a272b3
Fixed CarouselView Loop="False" rendering items incorrectly - test fix (#25924)
* Fixed CarouselView Loop="False" rendering items incorrectly

* Added snapshots

* Update CarouselViewShouldRenderCorrectly.png
2024-11-19 16:11:04 +00:00
Rui Marinho 800a8a010b
[ci] Try to call trim (#25941)
* Try to call trim

* Use a buildProps local

* Case sensitve

* Also speed up blazor tests

* Fix missing parameter
2024-11-19 16:01:33 +00:00
CSIGS@microsoft.com e5c71b6089
Juno: check in to lego/hb_7241b85a-f216-4d55-a9fa-d8030c736df5_20241118221232126. (#25933) 2024-11-19 09:11:08 -06:00
Gerald Versluis 9e567c3bc7
Add Syncfusion Toolkit to Dependabot config (#25942) 2024-11-19 11:06:10 +00:00
Mike Corsaro 1a39910172
Update StackNavigationManager.cs 2024-11-18 11:49:17 -08:00
Jakub Florkowski cbdfc9e9a9
Updated FormattedStringExtensions.cs (#25892) 2024-11-18 16:46:29 +00:00
Rui Marinho ce52028dbf
Revert "Fixed CarouselView Loop="False" rendering items incorrectly (#25545)" (#25922)
This reverts commit 7143174eca.
2024-11-18 14:38:29 +00:00
Jakub Florkowski f33c9a430e
[Android] Page.IsBusy activity indicators gets stuck/causes multiple to be displayed (#23745)
* Page.IsBusy activity idicator

* Added snapshots
2024-11-18 12:22:37 +00:00
Gerald Versluis e91dafa989
Differentiate colors for sample content template (#25839) 2024-11-18 10:18:17 +00:00
Anandhan Rajagopal fcbbfc3684
[Testing] Enabling ported UITests from Xamarin.UITests to Appium - 10 (#25847)
* enabled UITests from XamarinUI test to appium

* Update AppiumApp.cs 

Getting reference from this commit 9dab842bc5

* Added issue link for fails attribute - Issue7534.cs
2024-11-18 10:15:39 +00:00
Vignesh-SF3580 3c9c96b68c
Toggling Header/Footer in CollectionView Dynamically throws an exception (#25743)
* Fixed - 25724 : "ObjectDisposedException" When Toggling Header/Footer in CollectionView Dynamically

* updating nullable enable property

* reverting unnecessary changes

---------

Co-authored-by: praveenkumarkarunanithi <praveenkumar.karunanithi@syncfusion.com>
2024-11-18 09:56:05 +00:00
Jakub Florkowski 7143174eca
Fixed CarouselView Loop="False" rendering items incorrectly (#25545)
* Fixed CarouselView Loop="False" rendering items incorrectly

* Added snapshots
2024-11-18 03:11:37 +00:00
Gerald Versluis 83d9676a0d
Update README.md (#25840) 2024-11-18 00:30:54 +00:00
Jakub Florkowski 205185b7dc
Fixed the test (#25877) 2024-11-18 00:19:57 +00:00
Rui Marinho bdd1a3cd73
[housekeeping] Try run template tests on arm64 (#25895)
* Try run tests on arm64

* [testing] Check OSArchitecture to find the PrivacyManifest

* [testing] Fix arch for more tests
2024-11-18 00:17:43 +00:00
Rui Marinho 083ffa88d9
[housekeeping] Run dotnet format on main (#25894) 2024-11-16 09:06:13 +01:00
Rui Marinho f6e6a73cbc
Revert "[Testing] Implement ContextMenu UITest extension methods (#25340)" (#25897)
This reverts commit a11555b9c8.
2024-11-15 21:45:38 -08:00
Rui Marinho 8dae1216e0
[ci] Fix the internal build and update arcade (#25875)
* This works

* Update arcade
2024-11-15 17:23:41 -08:00
Shane Neuville 3992a45f2a
Update bug-report.yml (#25868) 2024-11-14 13:46:15 -06:00
Yusuke Yamada ec50772102
[localization] Fix template names in Japanese localization for .NET MAUI ContentPage and Window (#25858) 2024-11-14 09:55:34 -08:00
Rui Marinho 3006eb87f6
Move main to GA builds (#25838)
* Move main to GA builds

* These tests fail
2024-11-14 09:37:25 -08:00
Javier Suárez a11555b9c8
[Testing] Implement ContextMenu UITest extension methods (#25340)
* Add ContextMenu UITest extension methods

* Simplified test
2024-11-13 16:03:49 -08:00
Raka Rasell 6e56d11fe9
Fixed README for .NET 9 (#25821)
* chore: update README for .NET 9

* Apply suggestions from code review

---------

Co-authored-by: Gerald Versluis <gerald@verslu.is>
2024-11-13 19:17:12 +01:00
Anandhan Rajagopal 0af4a9a882
[Testing] Enabling ported UITests from Xamarin.UITests to Appium - 8 (#25814)
* Migrated the Issue2740 and ListViewNRE (#1)

* Migrated the Issue2740 and ListViewNRE

* Migrated the Issue1355 and Issue2923

* Feedback addressed

---------

Co-authored-by: nivetha-nagalingam <nivetha.nagalingam@syncfusion.com>

* optimized the test code changes

---------

Co-authored-by: nivetha-nagalingam <nivetha.nagalingam@syncfusion.com>
2024-11-13 17:52:32 +01:00
Matthew Leibowitz 353f1a3064
Download using new APIs (#25800)
* Download using new APIs

mono is no longer found on machines

* fix
2024-11-12 22:47:08 -08:00
Shane Neuville 8b7989afb6
Update bug-report.yml to include .NET 8 SR10 (#25810) 2024-11-12 19:32:33 -06:00
Jakub Florkowski b9562d0d22
Better exception for using viewCell with collection View (#25681) 2024-11-13 08:30:06 +08:00
Anandhan Rajagopal c1bb5fd280
[Testing] Enabling ported UITests from Xamarin.UITests to Appium - 4 (#25751)
* enabled UI tests from XamarinUItests into Appium

* enabled Issue13390

* Enabled Issue 4356
2024-11-12 22:27:56 +00:00
Anandhan Rajagopal fd1235627e
Enabled UI tests from XamarinUITest into Appium (#25785) 2024-11-12 16:01:58 +01:00
NirmalKumarYuvaraj d54be6f5ca
Fixed [Windows] TapGestureRecognizer not working on Entry (#25311)
* [Windows] TapGestureRecognizer not working on Entry

* RemoveHandler added for tapped and double tapped event

* Test case committed

* snapshot for ios platform has committed

* Review correction committed

* Codes modified and committed

* Properly handled tapped and double tapped event handlers.

* code changes committed

* Snapshots committed

* Comment added for why Fails on mac attribute is added.

* Removed failsOnMac attribute

---------

Co-authored-by: Karthik Raja <karthikraja.kalaimani@syncfusion.com>
Co-authored-by: KarthikRajaKalaimani <92777139+KarthikRajaKalaimani@users.noreply.github.com>
2024-11-11 12:18:44 -06:00
Anandhan Rajagopal 8b96f6d38d
[Testing] Enabling ported UITests from Xamarin.UITests to Appium (#25711)
* Enabling ported ui tests from Xamarin.UITests to appium

* reverted Bugzilla/Bugzilla37841.cs

* updated attributes

* Updated the test attributes for migrating test cases

* reverted Issue9419

* Updated Buzilla25943

* Updated test cases attributes

* reverted unwanted file changes

* modified Issue12246 based on review comments

* modified Bugzilla25943
2024-11-11 12:16:41 -06:00
Shane Neuville fad03e76d2
Setup lane to run CV2 and CV1 tests (#25719)
* Setup lane to run CV2 and CV1 tests

* - fix cake

* - fix args

* - fix

* - yaml

* - maybe

* - force CV2 for failing CV1 scenarios

* Update CarouselViewLoopNoFreeze.cs

* Update Issue12574.cs

* - force CV2
2024-11-11 09:47:31 -06:00
Shane Neuville c3c192b90d
Re-Enable Template Tests (#25674)
* Re-Enable Template Tests

* Update AppleTemplateTests.cs
2024-11-11 23:32:45 +08:00
Anandhan Rajagopal 9239105ef2
[Testing] Enabling ported UITests from Xamarin.UITests to Appium - 2 (#25731)
* enabled four test cases from xamarinui test

* ignore mac and windows for back operations

* enabled Issue8186 tests

* reverted navigation test issue changes

* enabled Issue13203

* reverted unwanted changes
2024-11-11 23:25:28 +08:00
Shane Neuville 456201fda6
Update bug-report.yml (#25771) 2024-11-11 08:49:07 -06:00
Jakub Florkowski 50adaed851
[iOS] RadioButton throws CGContextSetLineWidth - Fix (#25542)
* [iOS] RadioButton throws CGContextSetLineWidth - fix

* Update RadioButton.cs
2024-11-09 10:12:55 -06:00
Jakub Florkowski b2d1c318cb
ImageButton border (BorderWidth) overlaps the image instead of adding space - fix (#21259)
* ImageButton border (BorderWidth) overlaps the image

* Modified snapshots

* More samples

* Added another UITest

* Added pending snapshot

---------

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
2024-11-08 18:20:53 -06:00
Mike Corsaro c5f9996384 Switch back to content presenter to fix tests 2024-11-08 15:51:23 -08:00
Mike Corsaro cef6bef8c7 Fix test issues 2024-11-08 14:03:44 -08:00
Mike Corsaro 591bc9cf91 Add logic to clear content ASAP if unloaded event didn't yet fire 2024-11-08 11:23:58 -08:00
Mike Corsaro 2b6eca0ba4 Add small test 2024-11-07 12:24:26 -08:00
Mike Corsaro d70614c82c Merge branch 'main' into foda/NavCrash 2024-11-07 10:16:21 -08:00
Shane Neuville bd61427448
Disable NSToolbar Tabs (#25137) (#25700)
* Disable NSToolbar Tabs

* - fix OS check

* - fix tabbedview extentions PR

* - bump targets

* - add missing file

* - add if/def for NET18.0 target

* - add catalyst check

* - switch to newer APIs for iOS and catalyst 18+

* - if/def for iOS18
# Conflicts:
#	src/Core/src/Platform/iOS/TabbedViewExtensions.cs
2024-11-07 06:22:58 -06:00
Rui Marinho 6f1322bdfd
[ci] Fix provisioning with sudo (#25722)
* try with sudo

* dont do doctor
2024-11-07 10:56:44 +00:00
Rui Marinho 27c4f7901a
Try not run on arm64 (#25701)
* Try not run on arm64

* Add timeouts

* Increase the timeout to 30 min on template tests
2024-11-06 23:22:46 +00:00
Javier Suárez e720f1e5f0
[Testing] Reenable test ported from Xamarin.UITest (#25624)
* Reenable test ported from Xamarin.UITest

* Added Category

* Updated test

* More changes
2024-11-06 14:34:52 +01:00
Gerald Versluis 6a65d5e444
Fix minor online API docs warnings (#25685) 2024-11-06 12:54:54 +01:00
Shane Neuville 1412b38245
Skip invalidation on propagation (#25652)
* Skip Invalidation unless you're my immediate child

* - fix override on test

* Fix Legacy Layouts Invalidation Propagation

* - use invalidation args to propagate depth
2024-11-05 11:46:42 -06:00
Bret Johnson 421e8d6c21
Update developer doc to direct installing VS 17.12 or newer, not 17.10 (#25678)
You are really supposed to use 17.12 for .NET9 support.
Also, when I used 17.11, though it mostly worked, I saw the error "The 'interceptors' feature is not enabled in this namespace. Add '<InterceptorsNamespaces>...". That error went away when moving to 17.12 P5.

Co-authored-by: Bret Johnson <bretjohn@microsoft.com>
2024-11-04 22:31:21 +00:00