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

Implement NativeMenuItemSeparator.IsVisible #17032

Open
setoy opened this issue Sep 16, 2024 · 0 comments
Open

Implement NativeMenuItemSeparator.IsVisible #17032

setoy opened this issue Sep 16, 2024 · 0 comments

Comments

@setoy
Copy link

setoy commented Sep 16, 2024

Is your feature request related to a problem? Please describe.

Changing the visibility of the NativeMenuItemSeparator is useful in cases where you only want to show a separator on a certain condition.

Describe the solution you'd like

Implement IsVisible on NativeMenuItemSeparator similar to IsVisible on NativeMenuItem (like done here: #7952).

Describe alternatives you've considered

No response

Additional context

I want to show a separated "Logout" button in the TrayIcon - but only show the menu item (including its separator) when a user is actually logged into my application.

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

No branches or pull requests

1 participant