Dear Telerik team,
i have a memory leak issue when using the RadTransitionControl with version 2011.1.419.1040.
Here is the XAML, used into a empty usercontrol:
In my .cs code, i have a DispatcherTimer, with this code :
Do you think that my way is incorrect ? (to change the RadTransitionControl.content directly in the code etc..)
Thanks in advance !
i have a memory leak issue when using the RadTransitionControl with version 2011.1.419.1040.
Here is the XAML, used into a empty usercontrol:
<
Grid
x:Name
=
"LayoutRoot"
>
<
telerik:RadTransitionControl
x:Name
=
"LblEffect"
>
<
telerik:RadTransitionControl.Transition
>
<
telerik:RollTransition
/>
</
telerik:RadTransitionControl.Transition
>
<
telerik:RadTransitionControl.ContentTemplate
>
<
DataTemplate
>
<
TextBlock
HorizontalAlignment
=
"Stretch"
Foreground
=
"White"
Margin
=
"5"
Name
=
"lbl_status"
Text
=
"{Binding Content, ElementName=LblEffect}"
VerticalAlignment
=
"Center"
>
<
TextBlock.Effect
>
<
DropShadowEffect
Direction
=
"0"
ShadowDepth
=
"1"
BlurRadius
=
"4"
/>
</
TextBlock.Effect
>
</
TextBlock
>
</
DataTemplate
>
</
telerik:RadTransitionControl.ContentTemplate
>
</
telerik:RadTransitionControl
>
</
Grid
>
In my .cs code, i have a DispatcherTimer, with this code :
public
void
SwitchTick(
object
o, EventArgs sender)
{
if
(DataContext !=
null
)
{
LblEffect.Content =
null
;
LblEffect.Content = ((ItemsClass) DataContext).Status;
// (Status = simple String value)
{
}
Do you think that my way is incorrect ? (to change the RadTransitionControl.content directly in the code etc..)
- The leak is really important (1Mo/s under normal usage, with 15 instances of this usercontrol on screen)
- If i remove the RadTransitionControl, i don't leak at all
- I want to keep the cool effects :D
Thanks in advance !