ivan_b
Topic Author
Posts: 87
Joined: 22 Jul 2015, 12:57

Visibility in storyboard error

09 Jun 2019, 11:01

Hi,

In the latest noesis version I am getting this error "Can't animate property 'TextBlock.Visibility' with a ObjectAnimationUsingKeyFrames".
I am not sure this is due to some better error handling or this is a bug in the new Noesis version?
The xml part looks like this
                <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PackageListText" Storyboard.TargetProperty="(UIElement.Visibility)">
                 	<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible"/>
                </ObjectAnimationUsingKeyFrames>
 
User avatar
sfernandez
Site Admin
Posts: 1935
Joined: 22 Dec 2011, 19:20

Re: Visibility in storyboard error

10 Jun 2019, 12:25

In previous versions of Noesis that animation will probably be ignored as the Visible value was treated as a string, and unable to set it.

You can use the following:
<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PackageListText" Storyboard.TargetProperty="(UIElement.Visibility)">
    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static Visibility.Visible}"/>
</ObjectAnimationUsingKeyFrames>
 
ivan_b
Topic Author
Posts: 87
Joined: 22 Jul 2015, 12:57

Re: Visibility in storyboard error

16 Jun 2019, 12:40

Thank you.
 
User avatar
sfernandez
Site Admin
Posts: 1935
Joined: 22 Dec 2011, 19:20

Re: Visibility in storyboard error

17 Jun 2019, 16:31

Can we mark this as solved?
 
ivan_b
Topic Author
Posts: 87
Joined: 22 Jul 2015, 12:57

Re: Visibility in storyboard error

23 Jun 2019, 10:06

Yes, you can mark this as solved :)

Who is online

Users browsing this forum: No registered users and 4 guests