I would like to know if there is a way to use only XAML to perform an animation on a property, and then on the next click perform the reverse animation?
Here is a sample of the Trigger I have on a Border object to give the appearance of sliding out:
<!-- Animates the Width to Slide It Out. -->
<EventTrigger RoutedEvent="Border.MouseLeftButtonUp">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="theFilterControl"
Storyboard.TargetProperty="Width"
From="16"
To="170"
Duration="0:0:.7" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>