Skip to content

[NET12] [Enhancement]Add optional initial-value preselection to DisplayPromptAsync - #40291

Draft
devanathan-vaithiyanathan wants to merge 20 commits into
dotnet:mainfrom
devanathan-vaithiyanathan:fix-displayprompt-preselection
Draft

devanathan-vaithiyanathan wants to merge 20 commits into
dotnet:mainfrom
devanathan-vaithiyanathan:fix-displayprompt-preselection

Conversation

@devanathan-vaithiyanathan

@devanathan-vaithiyanathan devanathan-vaithiyanathan commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Target Branch

This PR is for Initial base
New features, API changes, or .NET 12 work (including .NET 12 fixes) main
.NET 11 servicing fixes net11, for review
Older servicing, release integration, infrastructure, or documentation The branch designated for that work

For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into net11; agents must not retarget or merge.

Description of Change

Adds initial text selection support to Page.DisplayPromptAsync on Android, iOS, Mac Catalyst, and Windows through a new initialSelection argument.

Callers can select the complete initial value, select a range, or place the caret at a specific position. PromptTextSelection.None requests no selection and places the caret at the end.

The existing prompt signature is retained. When selection is omitted or null, Android and iOS retain their native behavior; Mac Catalyst and Windows place the caret at the end without selecting text.

Note

By default, text is not selected on Windows, Android, and iOS, whereas on
Mac Catalyst, the text is selected. To achieve consistent behavior across all
platforms, use PromptTextSelection.None to prevent text selection on Mac Catalyst.

Issues Fixed

Fixes #4981

Motivation

Applications often provide suggested values in prompts. Selecting the whole value makes replacement convenient, while selecting part of it lets users edit only the relevant portion, such as Report in Report.pdf.

The earlier Boolean approach could request full selection but could not express a partial range or caret position. This change uses one selection argument for all of these cases without requiring a custom prompt.

Public API

Member Purpose
PromptTextSelectionPreset.All / None Presets for selecting all displayed text or placing the caret at the end without selection.
PromptTextSelection.All / None Convenient members returning the corresponding enum preset.
PromptTextSelection(int start, int length) Creates a fixed selection range or, when length is zero, a caret position.
PromptTextSelection.Start / Length Requested UTF-16 offsets for a fixed range.
PromptTextSelection.IsAll / IsNone Identify preset requests before reading range coordinates.
Page.DisplayPromptAsync(..., PromptTextSelectionPreset initialSelection) Accepts a selection preset.
Page.DisplayPromptAsync(..., PromptTextSelection initialSelection) Accepts a range, caret position, or null.
PromptArguments.InitialSelection Carries the request to the platform prompt implementation.
PromptDialog.InitialSelection Windows-specific property applied when the dialog opens.

The original DisplayPromptAsync overload and PromptArguments constructor remain available. The two new prompt overloads require all nine arguments, preserving overload resolution for existing calls with positional null or default arguments.

public Task<string> DisplayPromptAsync(
    string title, string message, string accept, string cancel,
    string placeholder, int maxLength, Keyboard keyboard,
    string initialValue, PromptTextSelectionPreset initialSelection);

public Task<string> DisplayPromptAsync(
    string title, string message, string accept, string cancel,
    string placeholder, int maxLength, Keyboard keyboard,
    string initialValue, PromptTextSelection initialSelection);

PromptTextSelection rejects negative coordinates, and undefined preset values are rejected. Preset requests are distinct from an explicit (0, 0) range.

Usage

Select all

await DisplayPromptAsync("Rename", "File name:", "OK", "Cancel",
    null, -1, null, "Report.pdf", PromptTextSelection.All);

Typing X replaces the complete value with X.

Select a range

await DisplayPromptAsync("Rename", "File name:", "OK", "Cancel",
    null, -1, null, "Report.pdf", new PromptTextSelection(start: 0, length: 6));

Only Report is selected; typing X produces X.pdf.

Place the caret

await DisplayPromptAsync("Rename", "File name:", "OK", "Cancel",
    null, -1, null, "Report.pdf", new PromptTextSelection(start: 6, length: 0));

The caret is placed before .pdf; typing X produces ReportX.pdf.

Request no selection

await DisplayPromptAsync("Rename", "File name:", "OK", "Cancel",
    null, -1, null, "Report.pdf", PromptTextSelection.None);

The caret is placed at the end; typing X produces Report.pdfX.

Use the existing overload

await DisplayPromptAsync("Rename", "File name:", initialValue: "Report.pdf");

No explicit selection is supplied. Platform-specific default behavior is
described below.

What Changed

Shared API and selection logic

File Change
src/Controls/src/Core/PromptTextSelection.cs Adds presets, an immutable selection type, validation, equality, and range normalization.
src/Controls/src/Core/Page/Page.cs Retains the original prompt method and adds preset and range overloads.
src/Controls/src/Core/PromptArguments.cs Retains the existing constructor and carries the initial selection through a new constructor and property.
Target-specific PublicAPI.Unshipped.txt files Record the new public API for each applicable target.

Selection coordinates are UTF-16 code-unit offsets. Ranges are resolved against the text actually displayed by the native control: the start is clamped to the text length, and the length is clamped to the remaining text. This also avoids overflow for very large coordinates.

Platform implementations

Platform Files Implementation
Android src/Controls/src/Core/Platform/AlertManager/AlertManager.Android.cs After showing the alert and requesting focus, applies a non-null normalized selection to the native input. A null request leaves native selection behavior unchanged.
iOS / iPadOS src/Controls/src/Core/Platform/AlertManager/AlertManager.iOS.cs Applies a non-null range in a one-shot EditingDidBegin handler and removes the handler on prompt completion. A null request leaves native selection behavior unchanged.
Mac Catalyst src/Controls/src/Core/Platform/AlertManager/AlertManager.iOS.cs Uses separate presentation-time logic. A temporary selection-change handler applies the requested range while the alert opens and is removed after presentation or prompt completion. A null request is treated as None to prevent automatic selection.
Windows src/Controls/src/Core/Platform/AlertManager/AlertManager.Windows.cs, PromptDialog.Windows.cs Passes the selection to PromptDialog and applies it in a one-time Opened handler. A null request is treated as None, placing the caret at the end.

Output Reference

These recordings were supplied for the earlier Boolean implementation. Confirm that they match the final behavior before using them as validation; partial-selection and caret-placement scenarios still need validation.

Windows Android iOS Mac Catalyst
Windows.mp4
Android.mov
iOS.mov
Mac.mov

Key Behaviors

  • All selects the complete displayed text; None places the caret at the end.
  • A positive-length range selects a substring; a zero-length range places the caret at the requested position.
  • Negative coordinates and undefined presets throw ArgumentOutOfRangeException.
  • Out-of-bounds ranges are clamped to the displayed text, including text affected by platform-specific maximum length processing.
  • Omitted or null selection preserves native behavior on Android and iOS. Mac Catalyst and Windows instead place the caret at the end.
  • Selection is initialized once and is not intended to override subsequent user edits or refocusing.
  • Prompt result, cancellation, keyboard, and maximum-length handling remain in place.

Tests and Validation

  • Added unit tests for range bounds, invalid arguments, presets, and prompt argument forwarding, including existing calls with null and default.
  • Added Issue 4981 UI screenshot coverage for All and None, plus an iOS typing and result check.

@github-actions

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Nov 16, 2026
@vishnumenon2684

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Nov 16, 2026
@MauiBot

MauiBot commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

PR Test Gate

@devanathan-vaithiyanathan — existing-test verification; Setup did not capture a tested commit.

Result INCONCLUSIVE Platform iOS


🧪 Gate analysis — click to expand

⚠ Inconclusive. Setup, build, or execution did not produce a conclusive result. This does not prove the fix is incorrect.

No interpretable test-group summary was produced. No additional test execution is inferred.

Setup did not capture a verified PR head; no commit is claimed as tested.

No immutable without-fix baseline was prepared.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Nov 16, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expert Review — 4 findings

Reviewed commit d6d01a4.

See inline comments for details.

Comment thread src/Controls/src/Core/Page/Page.cs Resolved
@Tamilarasan-Paranthaman Tamilarasan-Paranthaman added the t/enhancement ☀️ New feature or request label Nov 17, 2026
@vishnumenon2684

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Nov 17, 2026
@MauiBot

MauiBot commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

PR Test Gate

@devanathan-vaithiyanathan — existing-test verification; Setup did not capture a tested commit.

Result INCONCLUSIVE Platform iOS


🧪 Gate analysis — click to expand

⚠ Inconclusive. Setup, build, or execution did not produce a conclusive result. This does not prove the fix is incorrect.

No interpretable test-group summary was produced. No additional test execution is inferred.

Setup did not capture a verified PR head; no commit is claimed as tested.

No immutable without-fix baseline was prepared.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Nov 17, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expert Review — 3 findings

Reviewed commit b6d6ec0.

See inline comments for details.

Comment thread src/Controls/src/Core/Page/Page.cs Resolved
github-actions Bot and others added 4 commits December 1, 2026 04:25
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added s/autopilot-reviewing MAUI Autopilot: MAUI expert review in progress and removed s/autopilot-retrying maui-expert-autopilot: retrying a step that failed once s/autopilot-fixing MAUI Autopilot: fixing review findings or failing tests (GPT-6.2 Sol vs MAI Code 2) labels Dec 1, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expert Review — 1 finding

Reviewed commit c7de8ff.

See inline comments for details.

@github-actions github-actions Bot added s/autopilot-fixing MAUI Autopilot: fixing review findings or failing tests (GPT-6.2 Sol vs MAI Code 2) and removed s/autopilot-reviewing MAUI Autopilot: MAUI expert review in progress labels Dec 1, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added s/autopilot-reviewing MAUI Autopilot: MAUI expert review in progress and removed s/autopilot-fixing MAUI Autopilot: fixing review findings or failing tests (GPT-6.2 Sol vs MAI Code 2) labels Dec 1, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expert Review — 1 finding

Reviewed commit 2cf0818.

See inline comments for details.

@github-actions github-actions Bot added s/autopilot-fixing MAUI Autopilot: fixing review findings or failing tests (GPT-6.2 Sol vs MAI Code 2) s/autopilot-retrying maui-expert-autopilot: retrying a step that failed once and removed s/autopilot-reviewing MAUI Autopilot: MAUI expert review in progress labels Dec 1, 2026
@github-actions

This comment has been minimized.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added s/autopilot-reviewing MAUI Autopilot: MAUI expert review in progress and removed s/autopilot-retrying maui-expert-autopilot: retrying a step that failed once s/autopilot-fixing MAUI Autopilot: fixing review findings or failing tests (GPT-6.2 Sol vs MAI Code 2) labels Dec 1, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expert Review — No more findings

Reviewed commit 2b1c152.

@github-actions github-actions Bot added s/autopilot-testing MAUI Autopilot: relevant UI/device tests are being selected or run and removed s/autopilot-reviewing MAUI Autopilot: MAUI expert review in progress labels Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Selected Tests

Result NOT QUEUED Platforms Android, iOS, MacCatalyst, Windows Tests 1 UI, 56 device Commit 2b1c1524


🧪 Test selection — click to expand
Suite Result Selected Build
UI tests ❌ not queued 1 of 77 categories —
Device tests ❌ not queued 56 of 105 units —
🧪 UI tests — DisplayPrompt on Android, iOS, MacCatalyst, Windows

❌ Could not queue maui-pr-uitests: Azure Pipelines did not start maui-pr-uitests for the dispatch branch run-tests/pr40291-46592893599 within 10 minutes. Comment /review run-tests again, or use /azp run maui-pr-uitests for the full suite.

GPT-6.2 Sol: Run DisplayPrompt UI tests on Android, iOS, Mac Catalyst, and Windows for the new initial selection behavior.
MAI Code 2: Prompt initial-selection support; runs DisplayPrompt UI tests on Android, iOS, Mac Catalyst, and Windows.

🧪 Running — 1 category on Android, iOS, MacCatalyst, Windows

Platform Categories
Android DisplayPrompt
iOS DisplayPrompt
MacCatalyst DisplayPrompt
Windows DisplayPrompt
🧪 Device tests — Controls.Accessibility, Controls.Animations, Controls.Application, Controls.Behavior +52 on Android, iOS, MacCatalyst, Windows

❌ Could not queue maui-pr-devicetests: Azure Pipelines did not start maui-pr-devicetests for the dispatch branch run-devicetests/pr40291-46592893599 within 10 minutes. Comment /review run-tests again, or use /azp run maui-pr-devicetests for the full suite.

GPT-6.2 Sol: Run Controls device tests on all four platforms to include the uncategorized native prompt selection tests.
MAI Code 2: Prompt selection device coverage; runs Controls.Page device tests on Android, iOS, Mac Catalyst, and Windows.

🧪 Running — 56 categories on Android, iOS, MacCatalyst, Windows

Platform Categories
Android Controls.Accessibility, Controls.Animations, Controls.Application, Controls.Behavior, Controls.Border, Controls.BoxView, Controls.Button, Controls.CarouselView, Controls.CheckBox, Controls.CollectionView, Controls.Compatibility, Controls.ContentView, Controls.DatePicker, Controls.Dispatcher, Controls.Editor, Controls.Element, Controls.Entry, Controls.FlexLayout, Controls.FlyoutPage, Controls.Frame, Controls.Gesture, Controls.HybridWebView, Controls.Image, Controls.Label, Controls.Layout, Controls.Lifecycle, Controls.Map, Controls.Mapper, Controls.Memory, Controls.MenuFlyout, Controls.Modal, Controls.NavigationPage, Controls.Page, Controls.PageTransitions, Controls.Path, Controls.Picker, Controls.RadioButton, Controls.RefreshView, Controls.ScrollView, Controls.SearchBar, Controls.Shape, Controls.Shell, Controls.Slider, Controls.SwipeView, Controls.Switch, Controls.TabbedPage, Controls.TemplatedView, Controls.TextInput, Controls.Toolbar, Controls.View, Controls.VisualElement, Controls.VisualElementTree, Controls.WebView, Controls.Window, Controls.WindowOverlay, Controls.Xaml
iOS Controls.Accessibility, Controls.Animations, Controls.Application, Controls.Behavior, Controls.Border, Controls.BoxView, Controls.Button, Controls.CarouselView, Controls.CheckBox, Controls.CollectionView, Controls.Compatibility, Controls.ContentView, Controls.DatePicker, Controls.Dispatcher, Controls.Editor, Controls.Element, Controls.Entry, Controls.FlexLayout, Controls.FlyoutPage, Controls.Frame, Controls.Gesture, Controls.HybridWebView, Controls.Image, Controls.Label, Controls.Layout, Controls.Lifecycle, Controls.Map, Controls.Mapper, Controls.Memory, Controls.MenuFlyout, Controls.Modal, Controls.NavigationPage, Controls.Page, Controls.PageTransitions, Controls.Path, Controls.Picker, Controls.RadioButton, Controls.RefreshView, Controls.ScrollView, Controls.SearchBar, Controls.Shape, Controls.Shell, Controls.Slider, Controls.SwipeView, Controls.Switch, Controls.TabbedPage, Controls.TemplatedView, Controls.TextInput, Controls.Toolbar, Controls.View, Controls.VisualElement, Controls.VisualElementTree, Controls.WebView, Controls.Window, Controls.WindowOverlay, Controls.Xaml
MacCatalyst Controls.Accessibility, Controls.Animations, Controls.Application, Controls.Behavior, Controls.Border, Controls.BoxView, Controls.Button, Controls.CarouselView, Controls.CheckBox, Controls.CollectionView, Controls.Compatibility, Controls.ContentView, Controls.DatePicker, Controls.Dispatcher, Controls.Editor, Controls.Element, Controls.Entry, Controls.FlexLayout, Controls.FlyoutPage, Controls.Frame, Controls.Gesture, Controls.HybridWebView, Controls.Image, Controls.Label, Controls.Layout, Controls.Lifecycle, Controls.Map, Controls.Mapper, Controls.Memory, Controls.MenuFlyout, Controls.Modal, Controls.NavigationPage, Controls.Page, Controls.PageTransitions, Controls.Path, Controls.Picker, Controls.RadioButton, Controls.RefreshView, Controls.ScrollView, Controls.SearchBar, Controls.Shape, Controls.Shell, Controls.Slider, Controls.SwipeView, Controls.Switch, Controls.TabbedPage, Controls.TemplatedView, Controls.TextInput, Controls.Toolbar, Controls.View, Controls.VisualElement, Controls.VisualElementTree, Controls.WebView, Controls.Window, Controls.WindowOverlay, Controls.Xaml
Windows Controls.Accessibility, Controls.Animations, Controls.Application, Controls.Behavior, Controls.Border, Controls.BoxView, Controls.Button, Controls.CarouselView, Controls.CheckBox, Controls.CollectionView, Controls.Compatibility, Controls.ContentView, Controls.DatePicker, Controls.Dispatcher, Controls.Editor, Controls.Element, Controls.Entry, Controls.FlexLayout, Controls.FlyoutPage, Controls.Frame, Controls.Gesture, Controls.HybridWebView, Controls.Image, Controls.Label, Controls.Layout, Controls.Lifecycle, Controls.Map, Controls.Mapper, Controls.Memory, Controls.MenuFlyout, Controls.Modal, Controls.NavigationPage, Controls.Page, Controls.PageTransitions, Controls.Path, Controls.Picker, Controls.RadioButton, Controls.RefreshView, Controls.ScrollView, Controls.SearchBar, Controls.Shape, Controls.Shell, Controls.Slider, Controls.SwipeView, Controls.Switch, Controls.TabbedPage, Controls.TemplatedView, Controls.TextInput, Controls.Toolbar, Controls.View, Controls.VisualElement, Controls.VisualElementTree, Controls.WebView, Controls.Window, Controls.WindowOverlay, Controls.Xaml
⏭️ Skipped — what neither suite runs

UI tests — 76 categories, 0 platforms

Categories not run: Accessibility, ActionSheet, ActivityIndicator, Animation, AppLinks, Border, BoxView, Brush, Button, CarouselView, CollectionView1, CollectionView2, CollectionView3, CollectionView4, CollectionView5, CollectionView6, CollectionView7, Cells, CheckBox, ContextActions, CustomRenderers, DatePicker, Dispatcher, DisplayAlert, DragAndDrop, Entry, Editor, Effects, Essentials, FlyoutPage, Focus, Fonts, Frame, Gestures, GraphicsView, Image, ImageButton, IndicatorView, InputTransparent, IsEnabled, IsVisible, Label, Layout, Lifecycle, ManualReview, Maps, Navigation, Page, Performance, Picker, ProgressBar, RadioButton, RefreshView, SafeAreaEdges, Shadow, ScrollView, SearchBar, Shape, Slider, SoftInput, Stepper, Switch, SwipeView, Shell1, Shell2, TabbedPage, TableView, TimePicker, TitleView, ToolbarItem, Triggers, ViewBaseTests, VisualStateManager, Window, WebView, Material3

Each skipped platform and category is listed as a maui-pr-uitests (skipped) … status on this commit. Use /azp run maui-pr-uitests for the full suite.

Device tests — 49 categories, 0 platforms

Categories not run: Core.ActivityIndicator, Core.Animation, Core.Application, Core.Border, Core.BoxView, Core.Button, Core.CheckBox, Core.ContentView, Core.DatePicker, Core.Dispatcher, Core.Editor, Core.Element, Core.Entry, Core.FlowDirection, Core.FlyoutView, Core.Fonts, Core.Formatting, Core.Graphics, Core.GraphicsView, Core.Image, Core.ImageButton, Core.ImageSource, Core.IndicatorView, Core.Label, Core.Layout, Core.Lifecycle, Core.MauiContext, Core.Memory, Core.NavigationPage, Core.Page, Core.Picker, Core.ProgressBar, Core.RadioButton, Core.RefreshView, Core.ScrollView, Core.SearchBar, Core.ShapeView, Core.Slider, Core.Stepper, Core.SwipeView, Core.Switch, Core.TimePicker, Core.View, Core.WebView, Core.Window, Core.WindowOverlay, Graphics, Essentials, BlazorWebView

Each skipped platform and project is listed as a maui-pr-devicetests (skipped) … status on this commit. Use /azp run maui-pr-devicetests for the full suite.

🤖 Why these tests — AI rationale (GPT-6.2 Sol + MAI Code 2)

UI tests

Each model chose independently; every test that runs was selected by at least one of them.

Platform GPT-6.2 Sol MAI Code 2
Android DisplayPrompt DisplayPrompt
iOS DisplayPrompt DisplayPrompt
MacCatalyst DisplayPrompt DisplayPrompt
Windows DisplayPrompt DisplayPrompt

GPT-6.2 Sol — Run DisplayPrompt UI tests on Android, iOS, Mac Catalyst, and Windows for the new initial selection behavior.

  • Issue4981 adds runnable DisplayPrompt tests on all four platforms.
  • AlertManager and PromptDialog change native prompt selection, not Entry or Material3 rendering.
  • Other Apple dialogs do not use the new presentation callback.

MAI Code 2 — Prompt initial-selection support; runs DisplayPrompt UI tests on Android, iOS, Mac Catalyst, and Windows.

  • Platform-specific AlertManager changes affect prompt text selection on Android, Windows, iOS, and Mac Catalyst.
  • The new shared Issue4981 UI tests are tagged DisplayPrompt and runnable on all four platforms.
  • Page API and public-surface changes are covered by the focused prompt interaction tests; no unrelated controls or full run are needed.

Device tests

Each model chose independently; every test that runs was selected by at least one of them.

Platform GPT-6.2 Sol MAI Code 2
Android Controls.Accessibility, Controls.Animations, Controls.Application, Controls.Behavior, Controls.Border, Controls.BoxView, Controls.Button, Controls.CarouselView, Controls.CheckBox, Controls.CollectionView, Controls.Compatibility, Controls.ContentView, Controls.DatePicker, Controls.Dispatcher, Controls.Editor, Controls.Element, Controls.Entry, Controls.FlexLayout, Controls.FlyoutPage, Controls.Frame, Controls.Gesture, Controls.HybridWebView, Controls.Image, Controls.Label, Controls.Layout, Controls.Lifecycle, Controls.Map, Controls.Mapper, Controls.Memory, Controls.MenuFlyout, Controls.Modal, Controls.NavigationPage, Controls.Page, Controls.PageTransitions, Controls.Path, Controls.Picker, Controls.RadioButton, Controls.RefreshView, Controls.ScrollView, Controls.SearchBar, Controls.Shape, Controls.Shell, Controls.Slider, Controls.SwipeView, Controls.Switch, Controls.TabbedPage, Controls.TemplatedView, Controls.TextInput, Controls.Toolbar, Controls.View, Controls.VisualElement, Controls.VisualElementTree, Controls.WebView, Controls.Window, Controls.WindowOverlay, Controls.Xaml Controls.Page
iOS Controls.Accessibility, Controls.Animations, Controls.Application, Controls.Behavior, Controls.Border, Controls.BoxView, Controls.Button, Controls.CarouselView, Controls.CheckBox, Controls.CollectionView, Controls.Compatibility, Controls.ContentView, Controls.DatePicker, Controls.Dispatcher, Controls.Editor, Controls.Element, Controls.Entry, Controls.FlexLayout, Controls.FlyoutPage, Controls.Frame, Controls.Gesture, Controls.HybridWebView, Controls.Image, Controls.Label, Controls.Layout, Controls.Lifecycle, Controls.Map, Controls.Mapper, Controls.Memory, Controls.MenuFlyout, Controls.Modal, Controls.NavigationPage, Controls.Page, Controls.PageTransitions, Controls.Path, Controls.Picker, Controls.RadioButton, Controls.RefreshView, Controls.ScrollView, Controls.SearchBar, Controls.Shape, Controls.Shell, Controls.Slider, Controls.SwipeView, Controls.Switch, Controls.TabbedPage, Controls.TemplatedView, Controls.TextInput, Controls.Toolbar, Controls.View, Controls.VisualElement, Controls.VisualElementTree, Controls.WebView, Controls.Window, Controls.WindowOverlay, Controls.Xaml Controls.Page
MacCatalyst Controls.Accessibility, Controls.Animations, Controls.Application, Controls.Behavior, Controls.Border, Controls.BoxView, Controls.Button, Controls.CarouselView, Controls.CheckBox, Controls.CollectionView, Controls.Compatibility, Controls.ContentView, Controls.DatePicker, Controls.Dispatcher, Controls.Editor, Controls.Element, Controls.Entry, Controls.FlexLayout, Controls.FlyoutPage, Controls.Frame, Controls.Gesture, Controls.HybridWebView, Controls.Image, Controls.Label, Controls.Layout, Controls.Lifecycle, Controls.Map, Controls.Mapper, Controls.Memory, Controls.MenuFlyout, Controls.Modal, Controls.NavigationPage, Controls.Page, Controls.PageTransitions, Controls.Path, Controls.Picker, Controls.RadioButton, Controls.RefreshView, Controls.ScrollView, Controls.SearchBar, Controls.Shape, Controls.Shell, Controls.Slider, Controls.SwipeView, Controls.Switch, Controls.TabbedPage, Controls.TemplatedView, Controls.TextInput, Controls.Toolbar, Controls.View, Controls.VisualElement, Controls.VisualElementTree, Controls.WebView, Controls.Window, Controls.WindowOverlay, Controls.Xaml Controls.Page
Windows Controls.Accessibility, Controls.Animations, Controls.Application, Controls.Behavior, Controls.Border, Controls.BoxView, Controls.Button, Controls.CarouselView, Controls.CheckBox, Controls.CollectionView, Controls.Compatibility, Controls.ContentView, Controls.DatePicker, Controls.Dispatcher, Controls.Editor, Controls.Element, Controls.Entry, Controls.FlexLayout, Controls.FlyoutPage, Controls.Frame, Controls.Gesture, Controls.HybridWebView, Controls.Image, Controls.Label, Controls.Layout, Controls.Lifecycle, Controls.Map, Controls.Mapper, Controls.Memory, Controls.MenuFlyout, Controls.Modal, Controls.NavigationPage, Controls.Page, Controls.PageTransitions, Controls.Path, Controls.Picker, Controls.RadioButton, Controls.RefreshView, Controls.ScrollView, Controls.SearchBar, Controls.Shape, Controls.Shell, Controls.Slider, Controls.SwipeView, Controls.Switch, Controls.TabbedPage, Controls.TemplatedView, Controls.TextInput, Controls.Toolbar, Controls.View, Controls.VisualElement, Controls.VisualElementTree, Controls.WebView, Controls.Window, Controls.WindowOverlay, Controls.Xaml Controls.Page

GPT-6.2 Sol — Run Controls device tests on all four platforms to include the uncategorized native prompt selection tests.

  • PromptSelectionTests covers native ranges, caret placement, and platform-specific focus or reopen behavior.
  • The new classes lack a category, so Controls.Page alone would miss them.
  • No other device test project is affected.

MAI Code 2 — Prompt selection device coverage; runs Controls.Page device tests on Android, iOS, Mac Catalyst, and Windows.

  • Changes live in Controls Page and platform prompt implementations across all four platforms.
  • New prompt-selection device tests exercise the native prompt fields on Android, Windows, iOS, and Mac Catalyst under the Page test area.
  • No shared base handler, layout, Graphics, Essentials, or build infrastructure is changed, so broader device suites are omitted.

Generated by /review run-tests. A targeted run is a fast signal, not full-suite certification.

@github-actions github-actions Bot added s/autopilot-waiting-for-maintainer-review MAUI Autopilot finished: expert review clean and tests passed; waiting for maintainer review and removed s/autopilot-running MAUI Autopilot loop is running; remove this label to stop it s/autopilot-testing MAUI Autopilot: relevant UI/device tests are being selected or run labels Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

MAUI Autopilot — Ready for maintainer review

Results
Expert review No more findings on 2b1c152
Tests ⚠️ Could not run; re-run /review run-tests when CI is available
Review threads 12 resolved, 1 needs a decision
Needs a decision

Left unchanged; the reason is in each thread.

This branch was previously deployed

1 inactive (outdated) deployment
copilot-pat-pool — d6d01a43 Deployed Nov 16, 2026 by devanathan-vaithiyanathan via conclusion #3001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-controls-dialogalert DisplayAlert, dialog community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/android platform/ios platform/macos macOS / Mac Catalyst platform/windows s/autopilot-waiting-for-maintainer-review MAUI Autopilot finished: expert review clean and tests passed; waiting for maintainer review t/enhancement ☀️ New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DisplayPromptAsync preselect initialValue in prompt for easy overwriting

5 participants