# Help me Convert this WPF to Silverlight

**URL:** <https://forum.kirupa.com/t/help-me-convert-this-wpf-to-silverlight/326618>\
**Category:** programming\
**Created:** [December 30, 2011, 6:30am UTC](https://forum.kirupa.com/t/help-me-convert-this-wpf-to-silverlight/326618 "2011-12-30T06:30:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![complete](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@complete](https://forum.kirupa.com/u/complete)\
**Post date:** [December 30, 2011, 6:30am UTC](https://forum.kirupa.com/t/help-me-convert-this-wpf-to-silverlight/326618/1 "2011-12-30T06:30:58Z")

</div>

Help me Convert this WPF to Silverlight  
I am interested in a Charles Petzold C# example that shows how to do a fisheye effect ( [http://www.charlespetzold.com/blog/2009/05/Realizing-a-Fisheye-Effect-in-Silverlight.html](http://www.charlespetzold.com/blog/2009/05/Realizing-a-Fisheye-Effect-in-Silverlight.html) ). 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.  
\<Style.Triggers\>  
Error 2 The attachable property ‘Triggers’ was not found in type ‘Style’.  
How do I convert this to Silverlight?
