Skip to content

Add interface to pass root tag to IViewManager #8250

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions