Skip to content

Conversation

HotCakeX
Copy link

OpacityMaskView wasn't handling resources properly on unload, causing memory leaks and also changing

private static CompositionBrush GetVisualBrush(UIElement element)

to

   private static CompositionSurfaceBrush GetVisualBrush(UIElement element)

improves performance.

Event handlers in the HoverLight weren't being unsubscribed On Disconnected.
OpacityMaskView wasn't handling resources properly on unload, causing memory leaks and also changing 

```csharp
private static CompositionBrush GetVisualBrush(UIElement element)
```

to 

```csharp
   private static CompositionSurfaceBrush GetVisualBrush(UIElement element)
```

improves performance.
OpacityMaskView wasn't handling resources properly on unload, causing memory leaks and also changing

```csharp
private static CompositionBrush GetVisualBrush(UIElement element)
```

to

```csharp
   private static CompositionSurfaceBrush GetVisualBrush(UIElement element)
```

improves performance.
@HotCakeX HotCakeX marked this pull request as ready for review September 28, 2025 18:28
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.

2 participants