Help me Convert this WPF to Silverlight

I am interested in a Charles Petzold C# example that shows how to do a fisheye effect ( ). The XAML code samples are in WPF but I want to try this in Silverlight.

When I try to create the XAML code in Silverlight, the compiler complains in two locations:

<Style TargetType="{x:Type Button}">
Error 1 The type 'x:Type' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.

Error 2 The attachable property 'Triggers' was not found in type 'Style'.

How do I convert this to Silverlight?

I have been looking at some sample code from Charles Petzold.
It uses a XAML tag called "DoubleAnimation". Basically, it works using this code:

<DoubleAnimation Storyboard.TargetProperty="FontSize"
                             To="36" Duration="0:0:1" />

in the downloaded sample on this page:

But the accompanying web site mentions using a different way to do the animation with this tag:

<DoubleAnimation Storyboard.TargetProperty="LayoutTransform.ScaleX"
                             To="3" Duration="0:0:1" />

But when I substitude this code, the program crashes during the OnMouseEnter method and says thet it cannot resolve the targetProperty LayoutTransform.ScaleX


Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.