Skip to content

[Testing] Refactoring Feature Matrix UITest Cases for Entry Control - #37111

Merged
kubaflo merged 15 commits into
dotnet:inflight/currentfrom
LogishaSelvarajSF4525:refactoring-entry-feature2
Aug 27, 2026
Merged

kubaflo merged 15 commits into
dotnet:inflight/currentfrom
LogishaSelvarajSF4525:refactoring-entry-feature2

Conversation

@LogishaSelvarajSF4525

Copy link
Copy Markdown
Contributor

This pull request makes several improvements to the Entry control test pages and their supporting view models, focusing on expanding test coverage, improving UI accessibility, and enhancing code maintainability. The most significant changes include adding new bindable properties (such as BackgroundColor, Opacity, and WidthRequest), updating event handler logic for better testability, and refining the ViewModel with new helpers and a reset method. Additionally, UI elements have been updated for consistency and accessibility.

Feature and UI enhancements:

  • Added bindable properties BackgroundColor, Opacity, and WidthRequest to the Entry controls and ViewModel, allowing these properties to be set and tested from the UI (EntryControlPage.xaml, Material3_EntryControlPage.xaml, EntryViewModel.cs). [1] [2] [3] [4]
  • Added new labels to display the current keyboard type and return type in the UI, and updated the ViewModel to provide these values (EntryControlPage.xaml, EntryViewModel.cs). [1] [2] [3]

Event handler and logic improvements:

  • Updated event handlers to use TextChanged events for properties like cursor position, selection length, max length, width request, opacity, and height request, improving testability and code clarity (EntryControlPage.xaml.cs, EntryOptionsPage.xaml.cs). [1] [2] [3]
  • Refactored color selection logic for text and placeholder colors to use AutomationId instead of background color, increasing reliability in UI tests (EntryOptionsPage.xaml.cs). [1] [2]
  • Added a new reset method to the ViewModel to restore all properties to their default values, and updated the navigation logic to call this method (EntryViewModel.cs, EntryControlPage.xaml.cs). [1] [2]

UI and accessibility updates:

  • Added AutomationId values to key UI elements for improved automated testing and accessibility (EntryControlPage.xaml, Material3_EntryControlPage.xaml). [1] [2]
  • Adjusted font sizes for consistency and improved label clarity, and reorganized UI elements for better structure and accessibility (EntryControlPage.xaml). [1] [2]

These changes collectively improve the testability, maintainability, and accessibility of the Entry control test pages.

Issue Identified:

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 37111

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 37111"

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service dotnet-policy-service Bot added the community ✨ Community Contribution label Aug 5, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey there @@LogishaSelvarajSF4525! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Aug 5, 2026
@sheiksyedm

Copy link
Copy Markdown
Contributor

/azp run maui-pr-uitests

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@kubaflo

This comment has been minimized.

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Tests Failure Analysis

@LogishaSelvarajSF4525 — test-failure review results are available based on commit 6322ef7.

Maintainers can request a fresh review after new comments, commits, or CI runs by commenting /review tests.

Overall Not ready Failures 95 Regressed vs base 93 Baseline 1 on base

Test Failure Review: Not ready - click to expand

Overall verdict: Not ready. Of 95 distinct failures, 93 are deterministic regressions whose legs were green across five recent main builds and red on none; the one exact baseline match occurred on a flaky base leg and remains indeterminate, so no failure is dismissible as pre-existing.

  • ✗ PR-related — Entry feature-matrix UI and result-publication regressions (~92 tests/records): the PR changes Entry test coverage, and failures across iOS, macOS, and Windows—represented by VerifyClearButtonVisibilityWhenTextPresentOrEmpty—are absent from all five sampled base builds.
  • ✗ PR-related — navigation timeout (~1 test): the affected UI leg was green in all five sampled base builds, while the PR run repeatedly timed out waiting for the navigation element.
  • i Uncertain — incomplete CI evidence (~25 CI records): 23 failed legs yielded no extractable failure, Build Analysis was unmapped, and the macOS CollectionView UI check was cancelled, so these records require direct inspection.
  • i Uncertain — infrastructure and base-flake evidence (~2 failures): Provision JDK - MSB3073 was demoted by ci-scan #36690, while the sole exact baseline match occurred on a leg that failed in three and passed in two of five base builds (ci-scan #37214).

Coverage: 160 checks · 150 passing · 10 failing · 0 pending · 0 inaccessible · 1 unmapped · 23 unexplained build legs · 0 unaccounted failing checks · 1 aborted failing check · 0 canceled-build checks · 0 device-test unverified · 2 unattributed · 93 regressed-vs-base. Deterministic ceiling: Not ready — 93 regressions were proven against base; Build Analysis was unmapped, 23 failed legs were unexplained, two failures were unattributed, and one UI check was aborted.

Builds (this PR): maui-pr #1540838, maui-pr-uitests #1541042. Base sampling (main, 5 recent builds per definition): maui-pr 1544323, 1543337, 1542342, 1540062, 1535910; maui-pr-uitests 1544324, 1543338, 1540063, 1535911, 1533309.

Recommended action

Fix the Entry UI regressions and navigation timeout, then rerun CI and inspect the unexplained and cancelled records before merging.

@vishnumenon2684

Copy link
Copy Markdown
Contributor

/azp run maui-pr-uitests

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@vishnumenon2684

Copy link
Copy Markdown
Contributor

/azp run maui-pr-uitests

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@kubaflo kubaflo 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.

Is this one ready?

@sheiksyedm
sheiksyedm marked this pull request as ready for review August 27, 2026 10:56
Copilot AI lite review requested due to automatic review settings August 27, 2026 10:56
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI 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.

Pull request overview

This PR refactors the Entry Feature Matrix HostApp pages and corresponding UI tests to expand coverage (e.g., BackgroundColor/Opacity/WidthRequest), improve testability (more AutomationIds and text-driven option inputs), and reduce flakiness by consolidating keyboard/screenshot handling helpers.

Changes:

  • Expanded Entry options + ViewModel surface area (BackgroundColor, Opacity, WidthRequest) and added a ViewModel Reset() used when navigating to the options page.
  • Reworked HostApp UI (AutomationIds, layout, and options UI) to better support automated testing scenarios.
  • Updated FeatureMatrix UI tests (Entry + Material3 Entry) to cover more permutations and add keyboard-handling helpers.

Reviewed changes

Copilot reviewed 9 out of 296 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3EntryFeatureTests.cs Refactors/expands Material3 Entry feature-matrix UI tests and adds keyboard/screenshot helpers.
src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/EntryFeatureTests.cs Expands and reorders Entry feature-matrix tests; adds keyboard helper methods and more assertions.
src/Controls/tests/TestCases.HostApp/FeatureMatrix/EntryMaterial3/Material3_EntryControlPage.xaml.cs Uses EntryViewModel.Reset() and updates cursor-position handler to be text-driven.
src/Controls/tests/TestCases.HostApp/FeatureMatrix/EntryMaterial3/Material3_EntryControlPage.xaml Adds bindable props + AutomationIds and reworks “Options” UI to a button.
src/Controls/tests/TestCases.HostApp/FeatureMatrix/EntryControl/EntryViewModel.cs Adds new bindable properties, derived label values, and a comprehensive Reset() method.
src/Controls/tests/TestCases.HostApp/FeatureMatrix/EntryControl/EntryOptionsPage.xaml.cs Refactors option handlers (e.g., color selection via AutomationId) and adds handlers for new properties.
src/Controls/tests/TestCases.HostApp/FeatureMatrix/EntryControl/EntryOptionsPage.xaml Reorganizes options UI, adds new controls for BackgroundColor/Opacity/WidthRequest, and updates AutomationIds.
src/Controls/tests/TestCases.HostApp/FeatureMatrix/EntryControl/EntryControlPage.xaml.cs Uses EntryViewModel.Reset() and updates cursor-position handler to be text-driven.
src/Controls/tests/TestCases.HostApp/FeatureMatrix/EntryControl/EntryControlPage.xaml Adds bindable props, updates AutomationIds, and adds keyboard/return-type value labels.
Suppressed comments (2)

src/Controls/tests/TestCases.HostApp/FeatureMatrix/EntryControl/EntryControlPage.xaml.cs:57

  • SelectionLength_Clicked is wired up from XAML via TextChanged="SelectionLength_Clicked", but the handler signature currently takes EventArgs. This will fail XAML event hookup at runtime because TextChanged expects TextChangedEventArgs.
    src/Controls/tests/TestCases.HostApp/FeatureMatrix/EntryMaterial3/Material3_EntryControlPage.xaml.cs:50
  • SelectionLength_Clicked is used as a TextChanged handler from XAML (TextChanged="SelectionLength_Clicked"), but the method signature currently takes EventArgs. This will throw during XAML event hookup because TextChanged requires TextChangedEventArgs.

Comment on lines +766 to +774
private void VerifyScreenshotWithKeyboardHandling(string? screenshotName = null)
{ if (App.IsKeyboardShown())
App.DismissKeyboard();

// Using cropping instead of DismissKeyboard() on iOS to maintain focus during testing
if (string.IsNullOrEmpty(screenshotName))
VerifyScreenshot(cropBottom: CropBottomValue);
else
VerifyScreenshot(screenshotName, cropBottom: CropBottomValue);
Comment on lines +1322 to +1333
private void HideSoftKeyboardAfterFocus()
{
#if ANDROID
Assert.That(App.WaitForKeyboardToShow(TimeSpan.FromSeconds(5)), Is.True,
"The Android keyboard did not appear after the Entry received focus.");
App.DismissKeyboard();
Assert.That(App.WaitForKeyboardToHide(TimeSpan.FromSeconds(5)), Is.True,
"The Android keyboard remained visible after dismissal.");
#else
HideSoftKeyboardIfVisible();
#endif
}
@kubaflo
kubaflo changed the base branch from main to inflight/current August 27, 2026 14:29
kubaflo and others added 2 commits August 27, 2026 16:36
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@kubaflo
kubaflo merged commit aec6514 into dotnet:inflight/current Aug 27, 2026
1 of 10 checks passed
@github-actions github-actions Bot added this to the .NET 10 SR11 milestone Aug 27, 2026
kubaflo added a commit that referenced this pull request Aug 27, 2026
…37111)

This pull request makes several improvements to the Entry control test
pages and their supporting view models, focusing on expanding test
coverage, improving UI accessibility, and enhancing code
maintainability. The most significant changes include adding new
bindable properties (such as `BackgroundColor`, `Opacity`, and
`WidthRequest`), updating event handler logic for better testability,
and refining the ViewModel with new helpers and a reset method.
Additionally, UI elements have been updated for consistency and
accessibility.

**Feature and UI enhancements:**

* Added bindable properties `BackgroundColor`, `Opacity`, and
`WidthRequest` to the Entry controls and ViewModel, allowing these
properties to be set and tested from the UI (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32)
[[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)
* Added new labels to display the current keyboard type and return type
in the UI, and updated the ViewModel to provide these values
(`EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)
[[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)

**Event handler and logic improvements:**

* Updated event handlers to use `TextChanged` events for properties like
cursor position, selection length, max length, width request, opacity,
and height request, improving testability and code clarity
(`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134)
[[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318)
* Refactored color selection logic for text and placeholder colors to
use `AutomationId` instead of background color, increasing reliability
in UI tests (`EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60)
* Added a new reset method to the ViewModel to restore all properties to
their default values, and updated the navigation logic to call this
method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`).
[[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348)
[[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)

**UI and accessibility updates:**

* Added `AutomationId` values to key UI elements for improved automated
testing and accessibility (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20)
* Adjusted font sizes for consistency and improved label clarity, and
reorganized UI elements for better structure and accessibility
(`EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78)
[[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)

These changes collectively improve the testability, maintainability, and
accessibility of the Entry control test pages.

Issue Identified:
- #34611
- #29805

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 2, 2026
…37111)

This pull request makes several improvements to the Entry control test
pages and their supporting view models, focusing on expanding test
coverage, improving UI accessibility, and enhancing code
maintainability. The most significant changes include adding new
bindable properties (such as `BackgroundColor`, `Opacity`, and
`WidthRequest`), updating event handler logic for better testability,
and refining the ViewModel with new helpers and a reset method.
Additionally, UI elements have been updated for consistency and
accessibility.

**Feature and UI enhancements:**

* Added bindable properties `BackgroundColor`, `Opacity`, and
`WidthRequest` to the Entry controls and ViewModel, allowing these
properties to be set and tested from the UI (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32)
[[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)
* Added new labels to display the current keyboard type and return type
in the UI, and updated the ViewModel to provide these values
(`EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)
[[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)

**Event handler and logic improvements:**

* Updated event handlers to use `TextChanged` events for properties like
cursor position, selection length, max length, width request, opacity,
and height request, improving testability and code clarity
(`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134)
[[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318)
* Refactored color selection logic for text and placeholder colors to
use `AutomationId` instead of background color, increasing reliability
in UI tests (`EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60)
* Added a new reset method to the ViewModel to restore all properties to
their default values, and updated the navigation logic to call this
method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`).
[[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348)
[[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)

**UI and accessibility updates:**

* Added `AutomationId` values to key UI elements for improved automated
testing and accessibility (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20)
* Adjusted font sizes for consistency and improved label clarity, and
reorganized UI elements for better structure and accessibility
(`EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78)
[[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)

These changes collectively improve the testability, maintainability, and
accessibility of the Entry control test pages.

Issue Identified:
- #34611
- #29805

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 3, 2026
…37111)

This pull request makes several improvements to the Entry control test
pages and their supporting view models, focusing on expanding test
coverage, improving UI accessibility, and enhancing code
maintainability. The most significant changes include adding new
bindable properties (such as `BackgroundColor`, `Opacity`, and
`WidthRequest`), updating event handler logic for better testability,
and refining the ViewModel with new helpers and a reset method.
Additionally, UI elements have been updated for consistency and
accessibility.

**Feature and UI enhancements:**

* Added bindable properties `BackgroundColor`, `Opacity`, and
`WidthRequest` to the Entry controls and ViewModel, allowing these
properties to be set and tested from the UI (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32)
[[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)
* Added new labels to display the current keyboard type and return type
in the UI, and updated the ViewModel to provide these values
(`EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)
[[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)

**Event handler and logic improvements:**

* Updated event handlers to use `TextChanged` events for properties like
cursor position, selection length, max length, width request, opacity,
and height request, improving testability and code clarity
(`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134)
[[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318)
* Refactored color selection logic for text and placeholder colors to
use `AutomationId` instead of background color, increasing reliability
in UI tests (`EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60)
* Added a new reset method to the ViewModel to restore all properties to
their default values, and updated the navigation logic to call this
method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`).
[[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348)
[[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)

**UI and accessibility updates:**

* Added `AutomationId` values to key UI elements for improved automated
testing and accessibility (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20)
* Adjusted font sizes for consistency and improved label clarity, and
reorganized UI elements for better structure and accessibility
(`EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78)
[[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)

These changes collectively improve the testability, maintainability, and
accessibility of the Entry control test pages.

Issue Identified:
- #34611
- #29805

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 6, 2026
…37111)

This pull request makes several improvements to the Entry control test
pages and their supporting view models, focusing on expanding test
coverage, improving UI accessibility, and enhancing code
maintainability. The most significant changes include adding new
bindable properties (such as `BackgroundColor`, `Opacity`, and
`WidthRequest`), updating event handler logic for better testability,
and refining the ViewModel with new helpers and a reset method.
Additionally, UI elements have been updated for consistency and
accessibility.

**Feature and UI enhancements:**

* Added bindable properties `BackgroundColor`, `Opacity`, and
`WidthRequest` to the Entry controls and ViewModel, allowing these
properties to be set and tested from the UI (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32)
[[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)
* Added new labels to display the current keyboard type and return type
in the UI, and updated the ViewModel to provide these values
(`EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)
[[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)

**Event handler and logic improvements:**

* Updated event handlers to use `TextChanged` events for properties like
cursor position, selection length, max length, width request, opacity,
and height request, improving testability and code clarity
(`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134)
[[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318)
* Refactored color selection logic for text and placeholder colors to
use `AutomationId` instead of background color, increasing reliability
in UI tests (`EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60)
* Added a new reset method to the ViewModel to restore all properties to
their default values, and updated the navigation logic to call this
method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`).
[[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348)
[[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)

**UI and accessibility updates:**

* Added `AutomationId` values to key UI elements for improved automated
testing and accessibility (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20)
* Adjusted font sizes for consistency and improved label clarity, and
reorganized UI elements for better structure and accessibility
(`EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78)
[[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)

These changes collectively improve the testability, maintainability, and
accessibility of the Entry control test pages.

Issue Identified:
- #34611
- #29805

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 7, 2026
…37111)

This pull request makes several improvements to the Entry control test
pages and their supporting view models, focusing on expanding test
coverage, improving UI accessibility, and enhancing code
maintainability. The most significant changes include adding new
bindable properties (such as `BackgroundColor`, `Opacity`, and
`WidthRequest`), updating event handler logic for better testability,
and refining the ViewModel with new helpers and a reset method.
Additionally, UI elements have been updated for consistency and
accessibility.

**Feature and UI enhancements:**

* Added bindable properties `BackgroundColor`, `Opacity`, and
`WidthRequest` to the Entry controls and ViewModel, allowing these
properties to be set and tested from the UI (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32)
[[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)
* Added new labels to display the current keyboard type and return type
in the UI, and updated the ViewModel to provide these values
(`EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)
[[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)

**Event handler and logic improvements:**

* Updated event handlers to use `TextChanged` events for properties like
cursor position, selection length, max length, width request, opacity,
and height request, improving testability and code clarity
(`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134)
[[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318)
* Refactored color selection logic for text and placeholder colors to
use `AutomationId` instead of background color, increasing reliability
in UI tests (`EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60)
* Added a new reset method to the ViewModel to restore all properties to
their default values, and updated the navigation logic to call this
method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`).
[[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348)
[[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)

**UI and accessibility updates:**

* Added `AutomationId` values to key UI elements for improved automated
testing and accessibility (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20)
* Adjusted font sizes for consistency and improved label clarity, and
reorganized UI elements for better structure and accessibility
(`EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78)
[[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)

These changes collectively improve the testability, maintainability, and
accessibility of the Entry control test pages.

Issue Identified:
- #34611
- #29805

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 8, 2026
…37111)

This pull request makes several improvements to the Entry control test
pages and their supporting view models, focusing on expanding test
coverage, improving UI accessibility, and enhancing code
maintainability. The most significant changes include adding new
bindable properties (such as `BackgroundColor`, `Opacity`, and
`WidthRequest`), updating event handler logic for better testability,
and refining the ViewModel with new helpers and a reset method.
Additionally, UI elements have been updated for consistency and
accessibility.

**Feature and UI enhancements:**

* Added bindable properties `BackgroundColor`, `Opacity`, and
`WidthRequest` to the Entry controls and ViewModel, allowing these
properties to be set and tested from the UI (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32)
[[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)
* Added new labels to display the current keyboard type and return type
in the UI, and updated the ViewModel to provide these values
(`EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)
[[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)

**Event handler and logic improvements:**

* Updated event handlers to use `TextChanged` events for properties like
cursor position, selection length, max length, width request, opacity,
and height request, improving testability and code clarity
(`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134)
[[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318)
* Refactored color selection logic for text and placeholder colors to
use `AutomationId` instead of background color, increasing reliability
in UI tests (`EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60)
* Added a new reset method to the ViewModel to restore all properties to
their default values, and updated the navigation logic to call this
method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`).
[[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348)
[[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)

**UI and accessibility updates:**

* Added `AutomationId` values to key UI elements for improved automated
testing and accessibility (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20)
* Adjusted font sizes for consistency and improved label clarity, and
reorganized UI elements for better structure and accessibility
(`EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78)
[[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)

These changes collectively improve the testability, maintainability, and
accessibility of the Entry control test pages.

Issue Identified:
- #34611
- #29805

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 9, 2026
…37111)

This pull request makes several improvements to the Entry control test
pages and their supporting view models, focusing on expanding test
coverage, improving UI accessibility, and enhancing code
maintainability. The most significant changes include adding new
bindable properties (such as `BackgroundColor`, `Opacity`, and
`WidthRequest`), updating event handler logic for better testability,
and refining the ViewModel with new helpers and a reset method.
Additionally, UI elements have been updated for consistency and
accessibility.

**Feature and UI enhancements:**

* Added bindable properties `BackgroundColor`, `Opacity`, and
`WidthRequest` to the Entry controls and ViewModel, allowing these
properties to be set and tested from the UI (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32)
[[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)
* Added new labels to display the current keyboard type and return type
in the UI, and updated the ViewModel to provide these values
(`EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)
[[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)

**Event handler and logic improvements:**

* Updated event handlers to use `TextChanged` events for properties like
cursor position, selection length, max length, width request, opacity,
and height request, improving testability and code clarity
(`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134)
[[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318)
* Refactored color selection logic for text and placeholder colors to
use `AutomationId` instead of background color, increasing reliability
in UI tests (`EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60)
* Added a new reset method to the ViewModel to restore all properties to
their default values, and updated the navigation logic to call this
method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`).
[[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348)
[[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)

**UI and accessibility updates:**

* Added `AutomationId` values to key UI elements for improved automated
testing and accessibility (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20)
* Adjusted font sizes for consistency and improved label clarity, and
reorganized UI elements for better structure and accessibility
(`EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78)
[[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)

These changes collectively improve the testability, maintainability, and
accessibility of the Entry control test pages.

Issue Identified:
- #34611
- #29805

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 11, 2026
…37111)

This pull request makes several improvements to the Entry control test
pages and their supporting view models, focusing on expanding test
coverage, improving UI accessibility, and enhancing code
maintainability. The most significant changes include adding new
bindable properties (such as `BackgroundColor`, `Opacity`, and
`WidthRequest`), updating event handler logic for better testability,
and refining the ViewModel with new helpers and a reset method.
Additionally, UI elements have been updated for consistency and
accessibility.

**Feature and UI enhancements:**

* Added bindable properties `BackgroundColor`, `Opacity`, and
`WidthRequest` to the Entry controls and ViewModel, allowing these
properties to be set and tested from the UI (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32)
[[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)
* Added new labels to display the current keyboard type and return type
in the UI, and updated the ViewModel to provide these values
(`EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)
[[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)

**Event handler and logic improvements:**

* Updated event handlers to use `TextChanged` events for properties like
cursor position, selection length, max length, width request, opacity,
and height request, improving testability and code clarity
(`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134)
[[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318)
* Refactored color selection logic for text and placeholder colors to
use `AutomationId` instead of background color, increasing reliability
in UI tests (`EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60)
* Added a new reset method to the ViewModel to restore all properties to
their default values, and updated the navigation logic to call this
method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`).
[[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348)
[[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)

**UI and accessibility updates:**

* Added `AutomationId` values to key UI elements for improved automated
testing and accessibility (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20)
* Adjusted font sizes for consistency and improved label clarity, and
reorganized UI elements for better structure and accessibility
(`EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78)
[[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)

These changes collectively improve the testability, maintainability, and
accessibility of the Entry control test pages.

Issue Identified:
- #34611
- #29805

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 15, 2026
…37111)

This pull request makes several improvements to the Entry control test
pages and their supporting view models, focusing on expanding test
coverage, improving UI accessibility, and enhancing code
maintainability. The most significant changes include adding new
bindable properties (such as `BackgroundColor`, `Opacity`, and
`WidthRequest`), updating event handler logic for better testability,
and refining the ViewModel with new helpers and a reset method.
Additionally, UI elements have been updated for consistency and
accessibility.

**Feature and UI enhancements:**

* Added bindable properties `BackgroundColor`, `Opacity`, and
`WidthRequest` to the Entry controls and ViewModel, allowing these
properties to be set and tested from the UI (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32)
[[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)
* Added new labels to display the current keyboard type and return type
in the UI, and updated the ViewModel to provide these values
(`EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)
[[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)

**Event handler and logic improvements:**

* Updated event handlers to use `TextChanged` events for properties like
cursor position, selection length, max length, width request, opacity,
and height request, improving testability and code clarity
(`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134)
[[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318)
* Refactored color selection logic for text and placeholder colors to
use `AutomationId` instead of background color, increasing reliability
in UI tests (`EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60)
* Added a new reset method to the ViewModel to restore all properties to
their default values, and updated the navigation logic to call this
method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`).
[[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348)
[[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)

**UI and accessibility updates:**

* Added `AutomationId` values to key UI elements for improved automated
testing and accessibility (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20)
* Adjusted font sizes for consistency and improved label clarity, and
reorganized UI elements for better structure and accessibility
(`EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78)
[[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)

These changes collectively improve the testability, maintainability, and
accessibility of the Entry control test pages.

Issue Identified:
- #34611
- #29805

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 18, 2026
…37111)

This pull request makes several improvements to the Entry control test
pages and their supporting view models, focusing on expanding test
coverage, improving UI accessibility, and enhancing code
maintainability. The most significant changes include adding new
bindable properties (such as `BackgroundColor`, `Opacity`, and
`WidthRequest`), updating event handler logic for better testability,
and refining the ViewModel with new helpers and a reset method.
Additionally, UI elements have been updated for consistency and
accessibility.

**Feature and UI enhancements:**

* Added bindable properties `BackgroundColor`, `Opacity`, and
`WidthRequest` to the Entry controls and ViewModel, allowing these
properties to be set and tested from the UI (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32)
[[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)
* Added new labels to display the current keyboard type and return type
in the UI, and updated the ViewModel to provide these values
(`EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)
[[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)

**Event handler and logic improvements:**

* Updated event handlers to use `TextChanged` events for properties like
cursor position, selection length, max length, width request, opacity,
and height request, improving testability and code clarity
(`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134)
[[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318)
* Refactored color selection logic for text and placeholder colors to
use `AutomationId` instead of background color, increasing reliability
in UI tests (`EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60)
* Added a new reset method to the ViewModel to restore all properties to
their default values, and updated the navigation logic to call this
method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`).
[[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348)
[[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)

**UI and accessibility updates:**

* Added `AutomationId` values to key UI elements for improved automated
testing and accessibility (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20)
* Adjusted font sizes for consistency and improved label clarity, and
reorganized UI elements for better structure and accessibility
(`EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78)
[[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)

These changes collectively improve the testability, maintainability, and
accessibility of the Entry control test pages.

Issue Identified:
- #34611
- #29805

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 21, 2026
…37111)

This pull request makes several improvements to the Entry control test
pages and their supporting view models, focusing on expanding test
coverage, improving UI accessibility, and enhancing code
maintainability. The most significant changes include adding new
bindable properties (such as `BackgroundColor`, `Opacity`, and
`WidthRequest`), updating event handler logic for better testability,
and refining the ViewModel with new helpers and a reset method.
Additionally, UI elements have been updated for consistency and
accessibility.

**Feature and UI enhancements:**

* Added bindable properties `BackgroundColor`, `Opacity`, and
`WidthRequest` to the Entry controls and ViewModel, allowing these
properties to be set and tested from the UI (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32)
[[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)
* Added new labels to display the current keyboard type and return type
in the UI, and updated the ViewModel to provide these values
(`EntryControlPage.xaml`, `EntryViewModel.cs`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)
[[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136)
[[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213)

**Event handler and logic improvements:**

* Updated event handlers to use `TextChanged` events for properties like
cursor position, selection length, max length, width request, opacity,
and height request, improving testability and code clarity
(`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134)
[[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318)
* Refactored color selection logic for text and placeholder colors to
use `AutomationId` instead of background color, increasing reliability
in UI tests (`EntryOptionsPage.xaml.cs`).
[[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31)
[[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60)
* Added a new reset method to the ViewModel to restore all properties to
their default values, and updated the navigation logic to call this
method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`).
[[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348)
[[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54)

**UI and accessibility updates:**

* Added `AutomationId` values to key UI elements for improved automated
testing and accessibility (`EntryControlPage.xaml`,
`Material3_EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13)
[[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20)
* Adjusted font sizes for consistency and improved label clarity, and
reorganized UI elements for better structure and accessibility
(`EntryControlPage.xaml`).
[[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78)
[[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131)

These changes collectively improve the testability, maintainability, and
accessibility of the Entry control test pages.

Issue Identified:
- #34611
- #29805

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 27, 2026
@github-actions github-actions Bot modified the milestones: .NET 10 SR11, .NET 10 SR12 Oct 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-entry Entry community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants