dotnet / dotnet/wpf

When the Storyboard in VisualTransition of ControlTemplate selects the same property as the Storyboard in VisualState, it will cause a memory leak, and the Storyboard in VisualTransition will not be released

Open
#6,898 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

* .NET Core Version: .net 6.o
* Windows version: win10 64bit 21H1
* Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes
* Is this bug related specifically to tooling in Visual Studio (e.g. XAML Designer, Code editing, etc...)?No
* Security issues and bugs should be reported privately, learn more via our [responsible disclosure guidelines](https://github.com/dotnet/wpf/blob/main/README.md#reporting-security-issues-and-security-bugs).



**Problem description:When the Storyboard in VisualTransition of ControlTemplate selects the same property as the Storyboard in VisualState, it will cause a memory leak, and the Storyboard in VisualTransition will not be released.
I tried with the same code in .net 6 and .net framework 4.8, both result in memory leak.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.