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?
Page 1 of 1
Help me Convert this WPF to Silverlight
#2
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
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

Help


Back to top









