Bureau Blue
Average Rating:
(5)
(5)
Description
Discussions
(1)
|
|
-
CAUTION: Using this theme with Silverlight 4 and selecting the RIGHT ExpandDirection causes a memory leak!3 Posts | Last Post August 31, 2010
-
Written August 31, 2010Using Silverlight 4, I have put a basic Expander on an empty page with no content whatsoever using this Bureau Blue theme. If you indicate an Expand Direction of Down, Left, or Up; then you will not encounter any memory leak issues. If you indicate an ExpandDirection of Right, you can watch the Task Manager slowly increase your memory usage for the Silverlight 4 application (which runs inside iexplorer.exe). I am looking into whether an updated version exists for Silverlight 4, and if it does then I will make another post.
-
Written August 31, 2010Even the latest April 2010 XAML file has the same issue. I am researching and going to submit a bug to the Silverlight Codeplex site. When I work out the solution, I will post once again.
-
Written August 31, 2010The issue was caused by a value of one being assigned to one of the Duration properties for a ObjectAnimation
UsingKeyFrames element. If you set all of the ObjectAnimation UsingKeyFrames Duration properties to zero for this ExpandRight VisualState, then you will fix the memory leak. Below is the fixed XAML snippet that you can paste over the exising XAML into the Microsoft.Windo ws.Controls.The ming.BureauBlue .xaml file within the <Style TargetType="too lkit:Expander"> element: . . . <vsm:VisualStat e x:Name="ExpandR ight"> <Storyboard> <ObjectAnimatio nUsingKeyFrames Duration="0" Storyboard.Targ etName="Expande rButton" Storyboard.Targ etProperty="Tem plate"> <DiscreteObject KeyFrame KeyTime="0" Value="{StaticR esource ExpanderRightHe aderTemplate}"/ > </ObjectAnimati onUsingKeyFrame s> <ObjectAnimatio nUsingKeyFrames Duration="0" Storyboard.Targ etName="ExpandS ite" Storyboard.Targ etProperty="(Gr id.Row)"> <DiscreteObject KeyFrame KeyTime="0" Value="0"/> </ObjectAnimati onUsingKeyFrame s> <ObjectAnimatio nUsingKeyFrames Duration="0" Storyboard.Targ etName="ExpandS ite" Storyboard.Targ etProperty="(Gr id.Column)"> <DiscreteObject KeyFrame KeyTime="0" Value="1"/> </ObjectAnimati onUsingKeyFrame s> <ObjectAnimatio nUsingKeyFrames Duration="0" Storyboard.Targ etName="rd0" Storyboard.Targ etProperty="Hei ght"> <DiscreteObject KeyFrame KeyTime="0" Value="*"/> </ObjectAnimati onUsingKeyFrame s> <ObjectAnimatio nUsingKeyFrames Duration="0" Storyboard.Targ etName="cd1" Storyboard.Targ etProperty="Wid th"> <DiscreteObject KeyFrame KeyTime="0" Value="*"/> </ObjectAnimati onUsingKeyFrame s> </Storyboard> </vsm:VisualSta te> . . . I was using Silverlight 4 within IE8 on Windows 7 Enterprise x86.
-




