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

Adding x:Shared="False" to MahApps.TextBox.ContextMenu #3990

Merged
merged 1 commit into from
Dec 2, 2020
Merged

Adding x:Shared="False" to MahApps.TextBox.ContextMenu #3990

merged 1 commit into from
Dec 2, 2020

Conversation

lipchev
Copy link
Contributor

@lipchev lipchev commented Dec 1, 2020

Describe the changes you have made to improve this project

Added x:Shared="False" to the context menu (cut/copy/paste), used for all text-box controls.

Unit test

none

Additional context

There seems to be a lot of confusion about the sharing of context menus on the internet:

  • Look at what Linda is replying to Bill Gates II here
  • Here they explicitly show x:Shared="true"

My guess is that it probably has to do with something in the style- as it the leak doesn't grow up in instances, it's one per control type (I think).
Either that or it's the shared RoutedCommands (can there be a problem with those being shared!?)

If anyone understands the root cause here, I'd be curious to know..

Closed Issues

Closes #3989

@punker76 punker76 added this to the 2.4.2 milestone Dec 2, 2020
@punker76 punker76 merged commit 1d9e6e2 into MahApps:develop Dec 2, 2020
@punker76
Copy link
Member

punker76 commented Dec 2, 2020

@lipchev thx again! your changes have been merged, thanks for your contribution 👍

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

Successfully merging this pull request may close these issues.

Memory Leak with MahApps.TextBox.ContextMenu
2 participants