Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Silverlight 4
Silverlight 4 Discuss Microsoft Silverlight 4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Silverlight 4 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 29th, 2011, 06:57 PM
Friend of Wrox
Join Date: Jun 2005
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Default Help me Convert this WPF to Silverlight

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/2...lverlight.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.
Error 2 The attachable property 'Triggers' was not found in type 'Style'.
How do I convert this to Silverlight?
Old January 4th, 2012, 09:39 PM
Friend of Wrox
Join Date: Jun 2005
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post

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: http://www.charlespetzold.com/blog/2...lverlight.html
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
Old May 10th, 2012, 04:26 AM
Registered User
Join Date: May 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

I hope someone helps because I have the same as you .. ouchhh
Greetings delfin - Bateria Senao

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the WPF and Silverlight connection? Bill_Thompson BOOK: Professional C# 4.0 and .NET 4 1 September 30th, 2010 05:06 PM
STA COM with WPF EyeOfThierry BOOK: WPF Programmer's Reference: Windows Presentation Foundation with C# 2010 and .NET 4 2 April 14th, 2010 03:45 PM
Which is right for me now, asp,wpf or silverlight ysfkay ASP.NET 3.5 Professionals 0 December 4th, 2009 07:24 AM
WCF/WPF ashish_26 ASP.NET 3.5 Professionals 0 August 6th, 2009 05:41 AM
wpf+c#(kind help) vinothkumar124 Windows Presentation Foundation 0 December 16th, 2008 08:06 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.