Windows using the ToggleSwitch are not being disposed


Using redgate memory profiler I found that my application was not releasing resources. I tracked it to the toggle button. After running the memory profiler against your test application, I found that each time I click the "ToggleSwitch Control" button I would get an additional instance of the ToggleSwitchDemo and 5 additional instances of ToggleSwitch.
If I comment out the FluidMoveBehavior found in ToggleSwitch.Generic.xaml the instances are released when the window is closed. I'm not sure what causes this, but wanted to make you aware of the issue.
<ei:FluidMoveBehavior AppliesTo="Children" Duration="0:0:0.2">
      <QuarticEase  EasingMode="EaseIn" />
I also found this, but it didn't seem to work for me

file attachments

Closed Dec 13, 2012 at 8:11 AM by RatishPhilip
Fix incorporated into v1.2.Solution for this issue is posted at:http://social.expression.microsoft.com/Forums/en/blend/thread/f14d1486-24ba-447b-9712-e16f5457a08b


tmccowan wrote Aug 15, 2012 at 6:08 PM

Adding redgate instance screenshot

wrote Aug 15, 2012 at 6:08 PM

tmccowan wrote Aug 15, 2012 at 6:08 PM

Adding redgate retention screenshot

RatishPhilip wrote Dec 13, 2012 at 8:10 AM

hi tmccowan,
Thanks for reporting this issue and sorry for the late reply.

I have found a workaround for this issue and have posted the solution in http://social.expression.microsoft.com/Forums/en/blend/thread/f14d1486-24ba-447b-9712-e16f5457a08b.

This workaround will be incorporated in the next version of WPFSpark (which I am working on).

wrote Dec 13, 2012 at 8:11 AM

wrote Feb 14, 2013 at 7:28 PM

wrote May 16, 2013 at 9:22 AM