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

MenuFlyout in TreeView to do something with highlighted node. #9262

Open
1 of 3 tasks
iAmThatMichael opened this issue Apr 12, 2022 · 2 comments
Open
1 of 3 tasks

MenuFlyout in TreeView to do something with highlighted node. #9262

iAmThatMichael opened this issue Apr 12, 2022 · 2 comments
Labels
area-Flyouts feature proposal New feature proposal team-Rendering Issue for the Rendering team

Comments

@iAmThatMichael
Copy link

iAmThatMichael commented Apr 12, 2022

Is this a totally new sample, an addition to an existing sample page, or a modification of an existing sample page?

  • New sample
  • Addition to existing sample
  • Modification to existing sample

If this is an addition/modification to an existing sample page, which one?
MenuFlyout

Describe the sample
I propose a change for MenuFlyout to contain a sample on how to handle an interaction from MenuFlyout within a TreeView/ListView on a TreeViewNode. The sample should just contain a way to handle an interaction from MenuFlyoutItem on any particular node of a TreeView/ListView.

Is your sample request related to a problem? Please describe it
I can't seem to find a proper way of getting the currently highlighted TreeViewNode when using MenuFlyouts. I have some nodes and with a different FlyoutContext I would like to, for example, Edit or Open Folder but I can't determine what node I'm currently highlighted on. MenuFlyoutItem Click event returns the selected MenuFlyoutItem, the target of the MenuFlyout is the TreeView it belongs to, I can't use SelectedNode of the TreeView as it's null (it's highlighted not selected).

Additional context
Original app:
image

My app:
image

@gregwoo-microsoft
Copy link

Thanks for the suggestion @iAmThatMichael. We are currently busy with updating the repo structure but let's revisit that idea in the future. I think that it could be very helpful!

@gregwoo-microsoft gregwoo-microsoft added the feature proposal New feature proposal label May 3, 2022
@bpulliam bpulliam removed the feature proposal New feature proposal label Oct 12, 2022
@karkarl
Copy link
Contributor

karkarl commented Jan 18, 2024

This might be a feature request on the control that invokes the menu flyout.

@karkarl karkarl transferred this issue from microsoft/WinUI-Gallery Jan 18, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jan 18, 2024
@bpulliam bpulliam added feature proposal New feature proposal area-Flyouts and removed needs-triage Issue needs to be triaged by the area owners labels Jan 22, 2024
@bpulliam bpulliam added the team-Rendering Issue for the Rendering team label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Flyouts feature proposal New feature proposal team-Rendering Issue for the Rendering team
Projects
None yet
Development

No branches or pull requests

4 participants