maui icon indicating copy to clipboard operation
maui copied to clipboard

MenuFlyoutItem should have a FlyoutItemIsVisible property

Open plettb opened this issue 1 year ago • 4 comments

Description

In order to be consistent with other flyout classes, MenuFlyoutItem should have a FlyoutItemIsVisible property.

Public API Changes

Microsoft.Maui.Controls.MenuFlyoutItem

Intended Use-Case

I need to be able to toggle the visibility of a menu item dynamically.

plettb avatar Oct 27 '22 15:10 plettb

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

msftbot[bot] avatar Oct 27 '22 18:10 msftbot[bot]

Maybe related to https://github.com/dotnet/maui/issues/10960?

What happens if you use IsVisible instead of FlyoutItemIsVisible?

mattleibow avatar Oct 28 '22 14:10 mattleibow

Maybe related to https://github.com/dotnet/maui/issues/10960?

They're somewhat related, but substantially different. That one deals with FlyoutItem specifically. However, I guess part of my point is that MenuFlyoutItem really should be more similar to FlyoutItem.

What happens if you use IsVisible instead of FlyoutItemIsVisible?

Those are subtly different. I specifically want the functionality of FlyoutItemIsVisible, not IsVisible.

The documentation says "an item can be hidden in the flyout with the FlyoutItemIsVisible property, and removed from the flyout with the IsVisible property" (see the link for more).

plettb avatar Oct 28 '22 16:10 plettb

U can disabled it already FlyoutBehavouir i think it called then set this to disables

davidbuckleyni avatar Oct 28 '22 22:10 davidbuckleyni