Skip to content

Call RegisterXamlHostComponentView on demand #15396

Description

RegisterXamlHostComponentView internally calls the costly WindowsXamlManager.InitializeForCurrentThread function. This function call should precede any XAML-based calls.

This is not called today so no 3P modules will run without it. It can't be called by default as it'd mean penalizing all RNW apps, even the ones not needing XAML-based components.

Call this at the registration of the first XAML-based component an app imports.

Activity

  1. changed the title [-]Lazy load RegisterXamlHostComponentView if a component is Xaml-based[/-] [+]Call RegisterXamlHostComponentView on demand[/+] on Nov 20, 2025
  2. added and removed
    Needs: Triage 🔍New issue that needs to be reviewed by the issue management team (label applied by bot)
    on Nov 20, 2025
  3. sundaramramaswamy commented on Dec 10, 2025

    @sundaramramaswamy
    ContributorAuthor

    <XamlHost> tag is not planned for 0.82.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions