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

[AncestorBinding] add option to support crawling across popup/flyout+host boundary #1135

Open
Xiaoy312 opened this issue May 14, 2024 · 3 comments
Assignees
Labels
control/extensions-helpers-markup Related to attached properties, helper classes, or markup extensions without a finer tag kind/enhancement New feature or request.

Comments

@Xiaoy312
Copy link
Contributor

What would you like to be added:

<Button>
	<Button.Flyout>
		<Flyout>
			<Button DataContext="{utu:AncestorBinding AncestorType=Button, Path=DataContext...}" />

Why is this needed:

When materialized, the inner button is under the popup branch separate from the outer button's causing the crawling to fail.

For which Platform: all

Anything else we need to know?

Can we even trace back the associated host from the flyout/popup itself?
unoplatform/Uno.Samples#681

@Xiaoy312 Xiaoy312 added kind/enhancement New feature or request. control/extensions-helpers-markup Related to attached properties, helper classes, or markup extensions without a finer tag labels May 14, 2024
@Xiaoy312 Xiaoy312 self-assigned this May 14, 2024
@Xiaoy312
Copy link
Contributor Author

uno: [Popup.AssociatedFlyout].Target can be used to retrieve the host // bracket denotes [internal property]
win: impossible to do without doing a full crawling of visual tree, and comparing every flyout-host's flyout's content to the FlyoutPresenter's content... and, we have multiple "flyout" MenuFlyout, Tooltip, etc.

@agneszitte
Copy link
Contributor

@kazo0, @Xiaoy312 what would be the priority of this issue please

@Xiaoy312
Copy link
Contributor Author

no idea, just a nice-to-have feature, not really requested by any entity... just not yet
also, i dont really see a reasonable way to achieve this for windows atm...
so it is kinda blocked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
control/extensions-helpers-markup Related to attached properties, helper classes, or markup extensions without a finer tag kind/enhancement New feature or request.
Projects
None yet
Development

No branches or pull requests

2 participants