Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
4a223de
[release/10.0.1xx-sr10] Fix MediaPicker completion from child activit…
kubaflo Aug 22, 2026
7f27af1
[release/10.0.1xx-sr10] Fix dynamic ContentPresenter assignment (#37725)
kubaflo Aug 22, 2026
f4963a1
[release/10.0.1xx-sr10] Preserve custom iOS button styling (#37726)
kubaflo Aug 22, 2026
f1f3815
[release/10.0.1xx-sr10] Align Android SwipeItem content (#37727)
kubaflo Aug 22, 2026
b4efe2c
[release/10.0.1xx-sr10] Fix per-edge iOS safe area handling (#37728)
kubaflo Aug 22, 2026
2dc09e6
[release/10.0.1xx-sr10] Fix Android root-page back handling (#37729)
kubaflo Aug 22, 2026
a380db6
[release/10.0.1xx-sr10] Fix Material 3 status bar contrast (#37730)
kubaflo Aug 22, 2026
7e10776
[release/10.0.1xx-sr10] Update SkiaSharp to 4.150.1 (#37731)
kubaflo Aug 22, 2026
7c52324
Address SR10 integration review findings
Aug 22, 2026
9dee565
[release/10.0.1xx-sr10] Restore native iOS 26 TabBar behavior (#37542)
Aug 25, 2026
3ba56a3
Address Android activity review feedback
Aug 27, 2026
1eda9c6
Fix Android task monitor cancellation disposal
Aug 27, 2026
9bee661
[10.0.101] Fix the SR10 test failures (#37885)
Shalini-Ashokan Aug 28, 2026
97b06bf
[Windows-inflight/10.0.101] Fix Device test failing in the PR 37746 (…
devanathan-vaithiyanathan Aug 31, 2026
ac49668
[10.0.101] Fix the SR10 test failures (#37949)
TamilarasanSF4853 Aug 31, 2026
10799e6
[release/10.0.1xx-sr10] Fix incorrect top padding for translated views
devanathan-vaithiyanathan Aug 31, 2026
d26faa8
[release/10.0.1xx-sr10] Fix pull-to-refresh with an empty CollectionView
devanathan-vaithiyanathan Aug 31, 2026
778040a
[release/10.0.1xx-sr10] Fix Screenshot.CaptureAsync UI-thread deadlock
praveenkumarkarunanithi Aug 31, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions eng/NuGetVersions.targets
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,14 @@
Update="Svg.Model"
Version="$(SvgSkiaPackageVersion)"
/>
<PackageReference
Update="Svg.SceneGraph"
Version="$(SvgSkiaPackageVersion)"
/>
<PackageReference
Update="Svg.Animation"
Version="$(SvgSkiaPackageVersion)"
/>
<PackageReference
Update="ShimSkiaSharp"
Version="$(SvgSkiaPackageVersion)"
Expand Down
2 changes: 2 additions & 0 deletions eng/Signing.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<FileSignInfo Include="Svg.Skia.dll" CertificateName="3PartySHA2" />
<FileSignInfo Include="Svg.Custom.dll" CertificateName="3PartySHA2" />
<FileSignInfo Include="Svg.Model.dll" CertificateName="3PartySHA2" />
<FileSignInfo Include="Svg.SceneGraph.dll" CertificateName="3PartySHA2" />
<FileSignInfo Include="Svg.Animation.dll" CertificateName="3PartySHA2" />
<FileSignInfo Include="ShimSkiaSharp.dll" CertificateName="3PartySHA2" />
<FileSignInfo Include="Fizzler.dll" CertificateName="3PartySHA2" />
<FileSignInfo Include="ExCSS.dll" CertificateName="3PartySHA2" />
Expand Down
14 changes: 7 additions & 7 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@
<MicrosoftCodeAnalysisBannedApiAnalyzersVersion>4.14.0</MicrosoftCodeAnalysisBannedApiAnalyzersVersion>
<MicrosoftIoRecyclableMemoryStreamVersion>3.0.1</MicrosoftIoRecyclableMemoryStreamVersion>
<SystemNumericsVectorsVersion>4.6.1</SystemNumericsVectorsVersion>
<SystemMemoryPackageVersion>4.5.5</SystemMemoryPackageVersion>
<SystemBuffersPackageVersion>4.5.1</SystemBuffersPackageVersion>
<SystemMemoryPackageVersion>4.6.3</SystemMemoryPackageVersion>
<SystemBuffersPackageVersion>4.6.1</SystemBuffersPackageVersion>
<SystemIOUnmanagedMemoryStreamPackageVersion>4.3.0</SystemIOUnmanagedMemoryStreamPackageVersion>
<SystemObjectModelPackageVersion>4.3.0</SystemObjectModelPackageVersion>
<SystemRuntimeCompilerServicesUnsafePackageVersion>6.1.2</SystemRuntimeCompilerServicesUnsafePackageVersion>
Expand All @@ -122,19 +122,19 @@
- Feed URI in the nuget.config
- Native assets build and sha
-->
<_SkiaSharpVersion>3.116.1</_SkiaSharpVersion>
<_SkiaSharpExtendedVersion>3.0.0-preview.13</_SkiaSharpExtendedVersion>
<_HarfBuzzSharpVersion>8.3.0.1</_HarfBuzzSharpVersion>
<_SkiaSharpVersion>4.150.1</_SkiaSharpVersion>
<_SkiaSharpExtendedVersion>3.0.0</_SkiaSharpExtendedVersion>
<_HarfBuzzSharpVersion>14.2.1.1</_HarfBuzzSharpVersion>
<_SkiaSharpNativeAssetsVersion>0.0.0-commit.e57e2a11dac4ccc72bea52939dede49816842005.1728</_SkiaSharpNativeAssetsVersion>
<MicrosoftTemplateEngineTasksVersion>7.0.120</MicrosoftTemplateEngineTasksVersion>
<MicrosoftDotNetXHarnessTestRunnersCommonVersion>11.0.0-prerelease.26230.4</MicrosoftDotNetXHarnessTestRunnersCommonVersion>
<MicrosoftDotNetXHarnessTestRunnersXunitVersion>11.0.0-prerelease.26230.4</MicrosoftDotNetXHarnessTestRunnersXunitVersion>
<MicrosoftDotNetXHarnessCLIVersion>11.0.0-prerelease.26230.4</MicrosoftDotNetXHarnessCLIVersion>
<TizenUIExtensionsVersion>0.9.2</TizenUIExtensionsVersion>
<SvgSkiaPackageVersion>2.0.0.4</SvgSkiaPackageVersion>
<SvgSkiaPackageVersion>5.1.1</SvgSkiaPackageVersion>
<FizzlerPackageVersion>1.3.0</FizzlerPackageVersion>
<TizenUIExtensionsVersion>0.9.0</TizenUIExtensionsVersion>
<ExCSSPackageVersion>4.2.3</ExCSSPackageVersion>
<ExCSSPackageVersion>4.3.1</ExCSSPackageVersion>
<SystemDrawingCommonPackageVersion>9.0.0</SystemDrawingCommonPackageVersion>
<MicrosoftDotNetBuildTasksFeedVersion>10.0.0-beta.25523.113</MicrosoftDotNetBuildTasksFeedVersion>
<MicrosoftDotNetBuildTasksInstallersPackageVersion>10.0.0-beta.25523.113</MicrosoftDotNetBuildTasksInstallersPackageVersion>
Expand Down
48 changes: 25 additions & 23 deletions src/Controls/src/Core/Handlers/Items2/iOS/ItemsViewController2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ public virtual void UpdateFlowDirection()

if (_emptyViewDisplayed)
{
UpdateEmptyViewFlowDirection();
AlignEmptyView();
}

Expand Down Expand Up @@ -573,10 +574,22 @@ void AlignEmptyView()
return;
}

// Keep the empty view inside the collection view so its pan gesture can drive pull-to-refresh.
// In RTL, cancel the collection layout's coordinate-system flip; content flow direction is applied below.
var transform = CollectionView.EffectiveUserInterfaceLayoutDirection == UIUserInterfaceLayoutDirection.RightToLeft
? CGAffineTransform.MakeScale(-1, 1)
: CGAffineTransform.MakeIdentity();

if (!_emptyUIView.Transform.Equals(transform))
{
_emptyUIView.Transform = transform;
}
}

void UpdateEmptyViewFlowDirection()
{
if (_emptyViewFormsElement is not null)
{
// The empty view's FlowDirection is handled here instead of in UpdateFlowDirection()
// to ensure proper alignment independent of the CollectionView's layout flip behavior.
if (_emptyViewFormsElement.Handler?.PlatformView is UIView emptyView)
{
emptyView.UpdateFlowDirection(_emptyViewFormsElement);
Expand Down Expand Up @@ -605,34 +618,16 @@ void ShowEmptyView()
}

_emptyUIView.Tag = EmptyTag;

// Add the empty view to the CollectionView's superview instead of the CollectionView itself.
// The compositional layout's flipsHorizontallyInOppositeLayoutDirection (default true) causes
// the CollectionView to flip its content coordinate system when SemanticContentAttribute is
// ForceRightToLeft. Layout-managed views (cells, supplementary views) are compensated by the
// layout, but direct subviews are NOT — resulting in mirror-flipped rendering.
// Adding to the superview avoids this flip zone entirely.
var targetView = CollectionView.Superview;
if (targetView is not null)
{
targetView.InsertSubviewAbove(_emptyUIView, CollectionView);
}
else
{
// TODO: DetermineEmptyViewFrame() returns superview-coordinate-space values (CollectionView.Frame.X/Y),
// which are incorrect when the empty view is a child of CollectionView. This fallback is unlikely
// to execute in practice since Superview is expected to be non-null by the time ShowEmptyView() is called.
CollectionView.AddSubview(_emptyUIView);
}
CollectionView.AddSubview(_emptyUIView);

if (((IElementController)ItemsView).LogicalChildren.IndexOf(_emptyViewFormsElement) == -1)
{
ItemsView.AddLogicalChild(_emptyViewFormsElement);
}

UpdateEmptyViewFlowDirection();
LayoutEmptyView();

AlignEmptyView();
_emptyViewDisplayed = true;
}

Expand Down Expand Up @@ -681,7 +676,14 @@ virtual internal CGRect LayoutEmptyView()
}
}

_emptyUIView.Frame = frame;
if (!_emptyUIView.Frame.Equals(frame))
{
// UIKit's Frame is undefined under a non-identity transform.
_emptyUIView.Transform = CGAffineTransform.MakeIdentity();
_emptyUIView.Frame = frame;
}
Comment on lines +679 to +684

AlignEmptyView();

return frame;
}
Expand Down
7 changes: 7 additions & 0 deletions src/Controls/src/Core/Page/Page.cs
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,13 @@ public bool SendBackButtonPressed()
return OnBackButtonPressed();
}

bool? _hasBackButtonPressedOverride;

internal bool HasBackButtonPressedOverride =>
_hasBackButtonPressedOverride ??=
new Func<bool>(OnBackButtonPressed).Method.DeclaringType is Type declaringType &&
declaringType.Assembly != typeof(Page).Assembly;

/// <summary>
/// Lays out the child elements when the layout is invalidated.
/// </summary>
Expand Down
10 changes: 8 additions & 2 deletions src/Controls/src/Core/Window/Window.cs
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,12 @@ internal static bool CanConsumeBackNavigation(Page? page)
if (page is null)
return false;

// Framework containers are handled below based on their current navigation state.
// App and third-party overrides must always receive the back press because only
// invoking the override can determine whether it consumes the navigation.
if (page.HasBackButtonPressedOverride)
return true;

switch (page)
{
case Shell shell:
Expand Down Expand Up @@ -862,8 +868,8 @@ internal static bool CanConsumeBackNavigation(Page? page)

default:
// Conservative default: return false for unknown page types.
// We cannot know whether a custom container's OnBackButtonPressed() returns true,
// so we avoid suppressing the back-to-home animation speculatively.
// Custom overrides were handled above, so the system can safely provide
// the back-to-home animation for pages with framework behavior.
return false;
}
}
Expand Down
37 changes: 37 additions & 0 deletions src/Controls/tests/Core.UnitTests/WindowsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,25 @@ public void ContentPage_ReturnsFalse()
Assert.False(Window.CanConsumeBackNavigation(page));
}

[Fact]
public void DerivedContentPageWithoutOverride_ReturnsFalse()
{
Assert.False(Window.CanConsumeBackNavigation(new DerivedContentPage()));
}

[Fact]
public void ContentPageWithBackButtonOverride_ReturnsTrue()
{
Assert.True(Window.CanConsumeBackNavigation(new ContentPageWithBackButtonOverride()));
}

[Fact]
public void NavigationPageWithBackButtonOverride_ReturnsTrue()
{
var nav = new NavigationPageWithBackButtonOverride(new ContentPage());
Assert.True(Window.CanConsumeBackNavigation(nav));
}

[Fact]
public void NavigationPage_SinglePage_ReturnsFalse()
{
Expand Down Expand Up @@ -1120,5 +1139,23 @@ static Shell CreateSimpleShell(FlyoutBehavior flyoutBehavior = FlyoutBehavior.Di
shell.Items.Add(item);
return shell;
}

class DerivedContentPage : ContentPage
{
}

class ContentPageWithBackButtonOverride : ContentPage
{
protected override bool OnBackButtonPressed() => true;
}

class NavigationPageWithBackButtonOverride : NavigationPage
{
public NavigationPageWithBackButtonOverride(Page root) : base(root)
{
}

protected override bool OnBackButtonPressed() => true;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.ComponentModel;
using System;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
using Android.Views;
using Microsoft.Maui.Controls;
Expand All @@ -7,6 +9,8 @@
using Microsoft.Maui.Platform;
using Xunit;
using static Microsoft.Maui.DeviceTests.AssertHelpers;
using ALinearLayoutCompat = AndroidX.AppCompat.Widget.LinearLayoutCompat;
using ATextView = Android.Widget.TextView;

namespace Microsoft.Maui.DeviceTests
{
Expand Down Expand Up @@ -227,5 +231,95 @@ await InvokeOnMainThreadAsync(() =>
Assert.Equal(expectedValue, isEnabled);
});
}

[Theory]
[InlineData(1)]
[InlineData(5)]
[InlineData(20)]
[Description("SwipeItem icon and text should remain centered together when wrapping a CollectionView")]
public async Task SwipeItemIconAndTextRemainAlignedWithCollectionView(int itemCount)
{
SetupBuilder();

var collectionView = new CollectionView
{
ItemsSource = Enumerable.Range(1, itemCount).Select(index => $"{index} record").ToArray(),
ItemTemplate = new DataTemplate(() =>
{
var label = new Label { Padding = 10 };
label.SetBinding(Label.TextProperty, ".");
return label;
})
};

var swipeItem = new SwipeItem
{
Text = "Back",
BackgroundColor = Colors.White,
IconImageSource = new FileImageSource { File = "red.png" }
};

var swipeItems = new SwipeItems
{
swipeItem
};

var swipeView = new SwipeView()
{
LeftItems = swipeItems,
Content = collectionView
};

var root = new Grid
{
HeightRequest = 500,
WidthRequest = 300,
RowDefinitions =
{
new RowDefinition { Height = 40 },
new RowDefinition { Height = GridLength.Star }
}
};
root.Add(new Label { Text = "Records" });
root.Add(swipeView, row: 1);

await AttachAndRun(root, async (_) =>
{
var platformView = Assert.IsType<SwipeViewHandler>(swipeView.Handler).PlatformView;
swipeView.Open(OpenSwipeItem.LeftItems, false);

await AssertEventually(() =>
Enumerable.Range(0, platformView.ChildCount)
.Select(platformView.GetChildAt)
.OfType<ALinearLayoutCompat>()
.Any(view => view.ChildCount > 0));

var actionView = Assert.Single(
Enumerable.Range(0, platformView.ChildCount)
.Select(platformView.GetChildAt)
.OfType<ALinearLayoutCompat>()
.Where(view => view.ChildCount > 0));
var swipeButton = Assert.IsAssignableFrom<ATextView>(actionView.GetChildAt(0));

await AssertEventually(() =>
swipeButton.Height > 0 &&
swipeButton.Baseline > 0 &&
swipeButton.GetCompoundDrawables()[1] is not null);

var icon = swipeButton.GetCompoundDrawables()[1];
var fontMetrics = new global::Android.Graphics.Paint.FontMetricsInt();
swipeButton.Paint.GetFontMetricsInt(fontMetrics);
var iconTop = swipeButton.PaddingTop;
var iconBottom = iconTop + icon.Bounds.Height();
var textTop = swipeButton.Baseline + fontMetrics.Top;
var density = swipeButton.Context.GetDisplayDensity();
var tolerance = (int)Math.Ceiling(density);
var maxAlignmentGap = Math.Max(
swipeButton.CompoundDrawablePadding + tolerance,
swipeButton.LineHeight / 2);

Assert.InRange(textTop - iconBottom, -tolerance, maxAlignmentGap);
});
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Threading.Tasks;
using Microsoft.Maui.Controls;
using Microsoft.Maui.Controls.Handlers.Items;
using Microsoft.Maui.Graphics;
using Microsoft.Maui.Handlers;
using Microsoft.Maui.Hosting;
Expand All @@ -20,6 +21,8 @@ void SetupBuilder()
handlers.AddHandler(typeof(VerticalStackLayout), typeof(LayoutHandler));
handlers.AddHandler(typeof(Grid), typeof(LayoutHandler));
handlers.AddHandler(typeof(Button), typeof(ButtonHandler));
handlers.AddHandler(typeof(Label), typeof(LabelHandler));
handlers.AddHandler(typeof(CollectionView), typeof(CollectionViewHandler));
handlers.AddHandler<SwipeView, SwipeViewHandler>();
handlers.AddHandler<SwipeItem, SwipeItemMenuItemHandler>();
handlers.AddHandler<SwipeItemView, SwipeItemViewHandler>();
Expand Down
Loading
Loading