fullcontrols
fullcontrols copied to clipboard
FlatMenuItem, Memory Leak
Description
When using FlatMenuItem inside a DataTemplate, it seems like there might be a memory leak issue. Maybe you could look into the matter.
By replacing FlatMenuItem with the default equivalents, the issue is fixed, which leads me to believe there could be a bug in the library.
This is my xaml structure:
GlassScrollViewer
└── ItemsControl
└── ItemsControl.ItemTemplate
└── DataTemplate
└── Border
└── Border.ContextMenu
└── FlatContextMenu
├── FlatMenuItem
├── FlatMenuItem
├── FlatMenuSeparator
└── FlatMenuItem
Affected release
2.2.0
Framework
.NET 6
OS
Windows 11