Your phone can turn into a robot [LayoutTransformer works great on the Windows Phone platform]
**
This blog has moved to a new location and comments have been disabled.
All old posts, new posts, and comments can be found on The blog of dlaa.me.
See you there!
Comments
Anonymous
August 27, 2010
mmm very nice David. Great work. I expect lots of interest in this in a couple of months. :) Cheers, DanielAnonymous
August 31, 2010
The comment has been removedAnonymous
August 31, 2010
Clinton Gallagher SignCasters.com, Thanks for the lesson! As you can tell, I'm just matching the way books are done because my sample was supposed to be a virtual bookshelf. But if I ever get into publishing, I'll consider breaking with tradition! :)Anonymous
October 03, 2010
By the definition of energy, ENERGY CAN NEITHER BE CREATED NOR BE DESTROYED. ACCORDING TO ISAAC NEUWTON, E=MC*C. It is hard to build a robot. I think that, may be i can build a robot when i will be self dependent & graduated. MANY SCIENTISTS & RESEARCHERS HAVE PROVIDED US OUR EARTH'S GREAT TECHNOLOGIES. THEY STRUGGLE AND PROVIDE US LUXURIES AND TECHNOLOGIES TO US. We should take respect to the scientists of the EARTH. THANKSAnonymous
October 03, 2010
sanjiv kumar (INDIA), Yes, thank you, I certainly wasn't trying to disrespect scientists. :)Anonymous
January 03, 2011
I followed the instruction of the article and I have a problem when using an Image. I posted a question on stackoverflow describing my problem. Would it be possible to have a look at it, please? stackoverflow.com/.../parts-of-image-missing-when-using-scaletransform-with-layouttransformer-and-scrolAnonymous
January 03, 2011
gyurisc, From the description there, I'm not sure what's going on. You might try the same scenario on Silverlight 4 (where LayoutTransformer is part of the Silverlight 4 Toolkit) to see if it happens there, too. If not, it could be a Windows Phone-specific issue (possibly with ScrollViewer). You might also share a picture (or small demonstration application) of what's happening because that might help others determine what's going on. Hope this helps!Anonymous
January 06, 2011
I tried with the Silverlight toolkit and it did not happen there, so this seems to be windows phone specific. I will share a sample project for demonstration purposes.Anonymous
January 07, 2011
my test project can be found here. All you need to do is just to start zoom in couple of times and then scroll to the bottom right of the image, you will see the missing image and the black area. This is where you can download the project from dl.dropbox.com/.../ZoomTest.WP7.zipAnonymous
January 08, 2011
The comment has been removedAnonymous
January 11, 2011
Thanks for the explanation. I will try this and will post it back!Anonymous
March 30, 2011
goodAnonymous
December 03, 2012
Since WP still doesn't support layout panels, would you consider putting this up on nuget?Anonymous
December 03, 2012
chustar, I didn't do that originally because it seemed like a lot of overhead for a single class. If I had an environment handy where I could build and test it right now, I'd do so - but I reinstalled most of my computers recently and don't. :| Sorry about that!Anonymous
December 03, 2012
Thanks though!Anonymous
November 25, 2013
I have a storyboard animation which animates a ScaleTransform (on windows phone 8). I used the LayoutTransformer so the rest of the visual tree resizes with it. Am I right when I say this turns it into a dependent animation instead of an independent? Which means it won't use the composition thread and it all runs on the UI thread. Which makes the animation run at a very low framerate.Anonymous
November 25, 2013
Jesse, Sorry, it's been long enough since I dealt with this that I'm not sure about the answer to your question. That said, I don't think that the amount of content changes an animation's type and I think that ScaleTransform is an independent transform. I looked briefly online and didn't find any good references on the topic, so I'd say that measuring performance on a real device is probably your best option. Please do bear in mind that changes to the size of a LayoutTransformer cause it to re-layout and that's definitely not a render thread operation. Depending on how your scenario is hooked up, this could be an issue. Hope this helps!Anonymous
December 18, 2013
I don't see LayoutTransformer.dll anywhere in the Windows Phone Toolkit since it split off from the Silverlight Toolkit. Is the best option to download the Silverlight Toolkit and copy the dll into the project from there?Anonymous
December 18, 2013
It looks like they didn't include LayoutTransformer in the Windows Phone Toolkit. I'm not sure why, but it has always been a single CS file, so you can add it directly to your project or incorporate it into a custom build of the Toolkit if you wish. Sorry for the inconvenience!