I have a haml like this:
<UserControl.Resources>
<Storyboard x:Name="sbLogo" x:Key="onLoadeducLogo" Completed="sbLogo_Completed">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="image">
<LinearDoubleKeyFrame x:Name="pauseKeyFrame" KeyTime="0:0:2" Value="0"/>
<LinearDoubleKeyFrame x:Name="fadeInKeyFram" KeyTime="0:0:6" Value="1"/>
<LinearDoubleKeyFrame x:Name="fadeOutKeyFrame" KeyTime="0:0:12" Value="0"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</UserControl.Resources>
What I would like to do is update the values of the KeyTimeelements LinearDoubleKeyFramefrom the UserControl code located in C #.
I thought that maybe I could do this by pointing these elements to them x:Name, but I don't have much success. I also thought that maybe I could bind the values to the field in the code behind, but there was no success either.
Does anyone have any clues to push me in the right direction.
Thanks Phil
source
share