Hi,
I have a button which in Blend I have edited (using Edit current template). I have added my animations for mouse over etc and the button works as expected.
However, on the mouse over event I have a shape that scales. What I want to do is give the user the option to set in XAML the rotation and scaling properties.
So for example, something like this:
<Button Height="76" Content="Gallery" Style="{StaticResource RotatingAnimationButton}" " Scaling="2.0" >
where in the template I have :
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Document" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].
(ScaleTransform.ScaleX)">
where Value="1.5" would be changed to "2.0".
Currently, all I have is the style of the template. I am not sure whether I can pass in the parameters or I have to create some sort of user control?
JD
Note : This question was originally posted as Silverlight and WPF. But as you will see it only applies to Silverlight which is why the excellent solutions provided caused me problems.