Skip to content

Document public Material 3 helper types in .NET MAUI 11#3369

Merged
jfversluis merged 4 commits into
dotnet:mainfrom
davidortinau:daortin/p5-material3-public
Jun 12, 2026
Merged

Document public Material 3 helper types in .NET MAUI 11#3369
jfversluis merged 4 commits into
dotnet:mainfrom
davidortinau:daortin/p5-material3-public

Conversation

@davidortinau

Copy link
Copy Markdown
Contributor

Adds a "Customize Material 3 controls" section to docs/user-interface/material-design.md that enumerates the Microsoft.Maui.Platform Material 3 helper types now exposed as public in .NET MAUI 11 — and maps each one to the Handler2 variant that uses it as its platform view (EditorHandler2, PickerHandler2, DatePickerHandler2, TimePickerHandler2, SearchBarHandler2).

Includes a complete PlatformViewFactory example that subclasses MauiMaterialEditText and is wired into EditorHandler2. The example mirrors EditorHandler2.CreatePlatformView (including MauiMaterialContextThemeWrapper.Create(...) for the theme overlay, ImeOptions = ImeAction.Done, Gravity = GravityFlags.Top, TextAlignment = ViewStart, and SetSingleLine(false) / SetHorizontallyScrolling(false)) so the Material 3 theming and Editor-specific behavior aren't lost when the factory replaces the default.

Tracks dotnet/maui#35323 and aligns with the .NET 11 Preview 5 release notes (dotnet/core#10433).

Adds a "Customize Material 3 controls" section that enumerates the
Microsoft.Maui.Platform Material 3 helper types now exposed as public
in .NET MAUI 11 (MauiMaterialEditText, MauiMaterialPicker,
MauiMaterialDatePicker, MauiMaterialTimePicker, MauiMaterialTextView,
MauiMaterialSearchBarTextInputLayout, MaterialActivityIndicator,
MauiMaterialContextThemeWrapper). Includes a handler-customization
example that subclasses MauiMaterialEditText for Entry.

Tracks dotnet/maui#35323 and aligns with the .NET 11 Preview 5
release notes published in dotnet/core#10433.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 9b4c81a:

⚠️ Validation status: warnings

File Status Preview URL Details
docs/user-interface/material-design.md ⚠️Warning View (>=net-maui-8.0) Details

docs/user-interface/material-design.md

  • Line 292, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Platform.MauiMaterialEditText'.
  • Line 292, Column 57: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.EditorHandler2'.
  • Line 293, Column 50: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.PickerHandler2'.
  • Line 294, Column 54: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.DatePickerHandler2'.
  • Line 295, Column 54: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.TimePickerHandler2'.
  • Line 296, Column 68: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.SearchBarHandler2'.
  • Line 299, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Platform.MauiMaterialContextThemeWrapper'.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

Copilot AI review requested due to automatic review settings June 11, 2026 15:19

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

Adds .NET MAUI 11 documentation for customizing Android Material 3 controls by subclassing newly-public Microsoft.Maui.Platform helper types and swapping them in via Handler2 platform view factories.

Changes:

  • Adds a new Customize Material 3 controls section under the >=net-maui-11.0 moniker, including a helper-types-to-Handler2 mapping table.
  • Adds an Android PlatformViewFactory example for EditorHandler2 that subclasses MauiMaterialEditText.
  • Updates the page ms.date.

Comment thread docs/user-interface/material-design.md
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit d6ad0ca:

⚠️ Validation status: warnings

File Status Preview URL Details
docs/user-interface/material-design.md ⚠️Warning View (>=net-maui-8.0) Details

docs/user-interface/material-design.md

  • Line 292, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Platform.MauiMaterialEditText'.
  • Line 292, Column 57: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.EditorHandler2'.
  • Line 293, Column 50: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.PickerHandler2'.
  • Line 294, Column 54: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.DatePickerHandler2'.
  • Line 295, Column 54: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.TimePickerHandler2'.
  • Line 296, Column 68: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.SearchBarHandler2'.
  • Line 299, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Platform.MauiMaterialContextThemeWrapper'.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@jfversluis jfversluis closed this Jun 11, 2026
@jfversluis jfversluis reopened this Jun 11, 2026
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit d6ad0ca:

⚠️ Validation status: warnings

File Status Preview URL Details
docs/user-interface/material-design.md ⚠️Warning View (>=net-maui-8.0) Details

docs/user-interface/material-design.md

  • Line 292, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Platform.MauiMaterialEditText'.
  • Line 292, Column 57: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.EditorHandler2'.
  • Line 293, Column 50: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.PickerHandler2'.
  • Line 294, Column 54: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.DatePickerHandler2'.
  • Line 295, Column 54: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.TimePickerHandler2'.
  • Line 296, Column 68: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.SearchBarHandler2'.
  • Line 299, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Platform.MauiMaterialContextThemeWrapper'.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit aaa44d4:

⚠️ Validation status: warnings

File Status Preview URL Details
docs/user-interface/material-design.md ⚠️Warning View (>=net-maui-8.0) Details

docs/user-interface/material-design.md

  • Line 292, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Platform.MauiMaterialEditText'.
  • Line 292, Column 57: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.EditorHandler2'.
  • Line 293, Column 50: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.PickerHandler2'.
  • Line 294, Column 54: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.DatePickerHandler2'.
  • Line 295, Column 54: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.TimePickerHandler2'.
  • Line 296, Column 68: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Handlers.SearchBarHandler2'.
  • Line 299, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'Microsoft.Maui.Platform.MauiMaterialContextThemeWrapper'.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

Replace unresolved xrefs for newly public .NET 11 Material 3 helper and Handler2 types with code spans so OPS validation doesn't warn before the API reference includes them.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit c8f0b1d:

✅ Validation status: passed

File Status Preview URL Details
docs/user-interface/material-design.md ✅Succeeded View (>=net-maui-8.0)

For more details, please refer to the build report.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@jfversluis jfversluis merged commit 13ec517 into dotnet:main Jun 12, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants