Skip to content

CmdPal: Add a button to toggle the visibility of the dev ribbon#45379

Open
jiripolasek wants to merge 1 commit intomicrosoft:mainfrom
jiripolasek:feature/45371-cmdpal-temp-hide-devribbon
Open

CmdPal: Add a button to toggle the visibility of the dev ribbon#45379
jiripolasek wants to merge 1 commit intomicrosoft:mainfrom
jiripolasek:feature/45371-cmdpal-temp-hide-devribbon

Conversation

@jiripolasek
Copy link
Collaborator

Summary of the Pull Request

This PR adds an option to toggle visibility of the dev ribbon. The state is only temporary and does not persist across app runs -- that is intentional to prevent the dev from turning it off permanently.

image image

PR Checklist

  • Communication: I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected
  • Tests: Added/updated and all pass
  • Localization: All end-user-facing strings can be localized
  • Dev docs: Added/updated
  • New binaries: Added on the required places
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

@jiripolasek jiripolasek added the Product-Command Palette Refers to the Command Palette utility label Feb 4, 2026
Comment on lines +61 to +65
x:Name="ToggleDevRibbonVisibilitySettingsCard"
Description="This is only temporary and state is not saved"
Header="Toggle dev ribbon visibility"
HeaderIcon="{ui:FontIcon Glyph=}">
<Button Click="ToggleDevRibbonClicked" Content="Toggle dev ribbon" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would a toggleswitch work better here?

"Show dev toolbar in debug mode" -> On/Off? It'd be similiar to VS too

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's kind of a lazy solution. There's no state for toggle to bind to. Button just sends a message that says toggle it.

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

Labels

Product-Command Palette Refers to the Command Palette utility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CmdPal: Add a toggle to temporarily hide the dev ribbon

2 participants