BleepingComputer.com: Help me Convert this WPF to Silverlight

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Help me Convert this WPF to Silverlight

#1 User is offline   XARZU 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 11
  • Joined: 03-April 07

Posted 29 December 2011 - 07:41 PM

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 ). 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?

#2 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 31 December 2011 - 08:07 PM

I don't know the exact solution to the problem you are having, but the error message indicates that there is no Style.trigger property, nor have you defined what 'x' is supposed to be. I have not done anything in Silverlight for quite a while, but the 'x' would usually be assigned to a library of some sort. You are going ot have to figure out what the equivalents are.
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#3 User is offline   XARZU 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 11
  • Joined: 03-April 07

Posted 06 January 2012 - 05:13 PM

Thanks. I got it working. Now I have other issues when I test modification in the code.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users