Exception with Visibility property in a Story Board
Opened this issue · 2 comments
First, thank you for your last fixing about the Visibility property. Now it can be set in XAML. However, I have tried to use it in a StoryBoard (e.g. being part of a VisualState), but Blend raises an exception which states that: "The property value is not valid".
After manually setting in VS2012 and reopening in Blend:
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Purchase"> <DiscreteObjectKeyFrame KeyTime="0"> <DiscreteObjectKeyFrame.Value> <Visibility>Collapsed</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames>
it raises the following exception:
"InvalidOperationException: An animation is trying to modify an object named 'Purchase', but no such object can be found in the PageInstance."
in spite of the fact that the element actually exists.
Do you have any idea what's going on?
Interesting, I guess I didn't think about using a Storyboard for it.
Do you have a sample I can download? After looking at the error, it seems related to the Purchase app bar not being in the tree for some reason.