Visibility in storyboard error
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
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
Code: Select all
<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PackageListText" Storyboard.TargetProperty="(UIElement.Visibility)">
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible"/>
</ObjectAnimationUsingKeyFrames>
-
sfernandez
Site Admin
- Posts: 2984
- Joined:
Re: Visibility in storyboard error
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:
You can use the following:
Code: Select all
<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PackageListText" Storyboard.TargetProperty="(UIElement.Visibility)">
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static Visibility.Visible}"/>
</ObjectAnimationUsingKeyFrames>
-
sfernandez
Site Admin
- Posts: 2984
- Joined:
Re: Visibility in storyboard error
Can we mark this as solved?
Re: Visibility in storyboard error
Yes, you can mark this as solved :)
Who is online
Users browsing this forum: Google [Bot], Semrush [Bot] and 9 guests