Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
It appears that not all event handlers are disconnected correctly from the MediaElement when it is used on Windows.
Expected Behavior
All handlers are disconnected from the media element to the object can be disposed.
Steps To Reproduce
- Include the MediaElement in a MAUI project that is being build for windows
- Analyse memory trace after page has been navigated away
Link to public reproduction project repository
//
Environment
- .NET MAUI CommunityToolkit: 12.2.0
- CommunityToolkit MediaElement: 6.1.3
- OS: Windows 11
- .NET MAUI: 9.0
Anything else?

Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
It appears that not all event handlers are disconnected correctly from the MediaElement when it is used on Windows.
Expected Behavior
All handlers are disconnected from the media element to the object can be disposed.
Steps To Reproduce
Link to public reproduction project repository
//
Environment
Anything else?