Skip to content

Add interface to pass root tag to IViewManager #8250

@rozele

Description

@rozele

Proposal: Add interface to pass root tag to IViewManager

Summary

The UIManager module sends the rootTag to the createView native method. For view managers like FlyoutViewManager, we could use this rootTag value to look up the appropriate XamlRoot when creating XamlRoot dependent views like flyouts.

We might want to add something like NativeUIManager::tryGetXamlRoot(int rootTag) as well.

Motivation

Currently, FlyoutViewManager gets the XamlRoot for the first root view created with a XamlRoot. This is error prone in multi-window apps, where we need to set the correct XamlRoot for views like flyouts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions