-
- IdanB-Forsight
- Posts: 12
- Joined:
StoryBoard animation on Y to some height (via data binding)
Hi,
currently we're using the following XAML to describe some Y animation on screen:
While it does seem to work, according to logger we get:
[NOESIS/E] /OverlayXaml_MessagesScreen;component/AssistantScreen.xaml(16,5): Can't Freeze BeginStoryboard.Storyboard
Is there any option to make this XAML only, or am i forced to use code-behind ?
currently we're using the following XAML to describe some Y animation on screen:
Code: Select all
<Storyboard x:Key="UpDownStoryboard">
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)"
To="0" Duration="0:0:1"
From="{Binding ActualHeight, ElementName=FirstMessageSection, Converter={StaticResource HeightToByConverter}, ConverterParameter=-2}"/>
</Storyboard>
[NOESIS/E] /OverlayXaml_MessagesScreen;component/AssistantScreen.xaml(16,5): Can't Freeze BeginStoryboard.Storyboard
Is there any option to make this XAML only, or am i forced to use code-behind ?
-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: StoryBoard animation on Y to some height (via data binding)
I guess you're defining this storyboard in the resources of a template, which get sealed when applied and then freezes its resources. This is done because those resources will be shared between all instances of the template, so they cannot contain any binding as it won't make sense.
Try defining the storyboard inside the template elements, so the storyboard (with its bindings) is cloned for each instance of the template.
Let me know if that works for you.
Try defining the storyboard inside the template elements, so the storyboard (with its bindings) is cloned for each instance of the template.
Let me know if that works for you.
Who is online
Users browsing this forum: No registered users and 2 guests