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

Add a close button to the Snippets pane #17528

Merged
merged 4 commits into from
Jul 9, 2024
Merged

Conversation

zadjii-msft
Copy link
Member

@zadjii-msft zadjii-msft commented Jul 8, 2024

As discussed in the bug bash. It should be closable with a button.

This also changes the tab color to match the Settings tabs.

This also fixes a crash where dragging just a snippets pane out to it's own window would crash.

x:Uid="SnippetPaneTitle"
HorizontalAlignment="Left"
FontSize="24" />
<Button x:Uid="CloseSnippetsPaneButton" HorizontalAlignment="Right" Click="_closePaneClick">
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<Button x:Uid="CloseSnippetsPaneButton" HorizontalAlignment="Right" Click="_closePaneClick">
<Button x:Uid="CloseSnippetsPaneButton" HorizontalAlignment="Right" Click="Close">

does this work?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope, cause Close() doesn't take the two arguments needed for a Click handler

Copy link
Member

Choose a reason for hiding this comment

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

I'd thought the XAML compiler was flexible and used metadata to determine the arity of the event handler, but it appears I had mixed it up with something else.

Copy link
Member

@lhecker lhecker left a comment

Choose a reason for hiding this comment

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

(Preliminary 2nd approve. Same question as Dustin.)

@zadjii-msft zadjii-msft added this pull request to the merge queue Jul 9, 2024
Merged via the queue into main with commit 6c01d73 Jul 9, 2024
20 checks passed
@zadjii-msft zadjii-msft deleted the dev/migrie/snippets-nitteps branch July 9, 2024 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants