Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluate how to allow using FlyoutBase/MenuFlyout #20

Closed
asklar opened this issue Mar 2, 2021 · 0 comments · Fixed by #25
Closed

Evaluate how to allow using FlyoutBase/MenuFlyout #20

asklar opened this issue Mar 2, 2021 · 0 comments · Fixed by #25
Assignees

Comments

@asklar
Copy link
Member

asklar commented Mar 2, 2021

FlyoutBase and MenuFlyout are not FrameworkElements (they're DOs); so the RNW API won't be able to create them
What can be done to enable non-FE DOs to be used/created in RNX?
One idea is to create a UserControl that mimics the properties on MenuFlyout and others, and copies those props to a wrapped MenuFlyout (and the UserControl has 0 measure).
That way the element can be created by the view manager and later on when AddChildren is called we can remove it from the tree, get the wrapped MenuFlyout, and attach it to the parent via the ContextFlyout or AttachedFlyout properties

@asklar asklar self-assigned this Mar 4, 2021
@asklar asklar closed this as completed in #25 Mar 4, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Aug 17, 2021
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 a pull request may close this issue.

1 participant