Skip to content

Comments

[release/9.0.1xx-sr6] Avoid qualified name in x:Type binding for Blazor Hybrid template#29011

Merged
rmarinho merged 1 commit intorelease/9.0.1xx-sr6from
backport/pr-29005-to-release/9.0.1xx-sr6
Apr 22, 2025
Merged

[release/9.0.1xx-sr6] Avoid qualified name in x:Type binding for Blazor Hybrid template#29011
rmarinho merged 1 commit intorelease/9.0.1xx-sr6from
backport/pr-29005-to-release/9.0.1xx-sr6

Conversation

@github-actions
Copy link
Contributor

Backport of #29005 to release/9.0.1xx-sr6

/cc @mattleibow @BretJohnson

Use an explicit XML namespace for Component, avoiding use
qualified name syntax in the x:Type binding. Qualified names
(like `local:Components.Routes`) aren't currently supported by
XAML Hot Reload, producing the error
"Nested types are not supported: Components.Routes"
and causing XAML Hot Reload to not work. This support
is coming in a future VS update, but for now it's best to avoid
using of the qualified name syntax in our templates, to keep
things broadly compatible and working for new users. We
don't use qualified names in XAML bindings anywhere else
in MAUI XAML templates; this is the last occurrence.

Fixes #20669
@github-actions github-actions bot requested a review from a team as a code owner April 15, 2025 21:26
@rmarinho
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@rmarinho rmarinho merged commit e29347f into release/9.0.1xx-sr6 Apr 22, 2025
7 checks passed
@rmarinho rmarinho deleted the backport/pr-29005-to-release/9.0.1xx-sr6 branch April 22, 2025 09:38
@github-actions github-actions bot locked and limited conversation to collaborators May 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant