Skip to content

Document implicit XAML namespace declarations for .NET 11#3281

Open
davidortinau wants to merge 1 commit intomainfrom
docs-implicit-xmlns
Open

Document implicit XAML namespace declarations for .NET 11#3281
davidortinau wants to merge 1 commit intomainfrom
docs-implicit-xmlns

Conversation

@davidortinau
Copy link
Copy Markdown
Contributor

@davidortinau davidortinau commented Apr 10, 2026

Summary

Documents that implicit XAML namespace declarations are enabled by default in .NET 11 (dotnet/maui#33834).

Changes

  • docs/xaml/namespaces/index.md — New "Implicit namespace declarations" section with before/after XAML examples
  • docs/xaml/fundamentals/get-started.md — Moniker-gated note pointing to the new section

All content gated with >=net-maui-11.0 moniker range.

Companion to dotnet/core#10348.


Internal previews

📄 File 🔗 Preview link
docs/xaml/fundamentals/get-started.md docs/xaml/fundamentals/get-started
docs/xaml/namespaces/index.md docs/xaml/namespaces/index

In .NET 11 (PR dotnet/maui#33834), implicit xmlns declarations are
enabled by default. The compiler automatically injects the standard
MAUI and x: namespace declarations, so XAML files can omit them.

Changes:
- docs/xaml/namespaces/index.md: Add new 'Implicit namespace
  declarations' section with before/after examples, moniker-gated
  for .NET 11 (default) and .NET 10 (preview opt-in).
- docs/xaml/fundamentals/get-started.md: Add .NET 11 note near xmlns
  explanation and split the implicit xmlns content into version-
  specific moniker blocks (.NET 11 default vs .NET 10 opt-in).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@davidortinau davidortinau requested a review from a team as a code owner April 10, 2026 20:51
@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 e40930d:

✅ Validation status: passed

File Status Preview URL Details
docs/xaml/fundamentals/get-started.md ✅Succeeded View (>=net-maui-8.0)
docs/xaml/namespaces/index.md ✅Succeeded View (>=net-maui-8.0)

For more details, please refer to the build report.

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.

1 participant