Geeks With Blogs
Light Up the Web Blog about programming in Silverlight May 2010 Entries
Silverlight Center And Scale Behavior
If you are interested in my last post about "How to center and scale Silverlight applications using ViewBox control", I just published behavior that you can use instead of making changes in code. How it works? 1. Download behavior (http://gallery.expression.... ) 2. Add dll to your application <UserControl ..... xmlns:interaction="clr-name... xmlns:behavior="clr-namespa... ......

Posted On Sunday, May 2, 2010 9:42 PM

How to center and scale Silverlight applications using ViewBox control
There are many ways to make your application scalable in Web Browser window and align it in the center. Usually we use two Grid controls to align and panel control (like Canvas) to scale our apps. Not the best solution <UserControl … > <Grid x:Name="LayoutRoot" Background="White"> <Grid HorizontalAlignment="Center" VerticalAlignment="Center"> <Canvas x:Name="scalePanel" VerticalAlignment="Top" HorizontalAlignment="Center... … </Canvas> </Grid> </Grid> </UserControl> ......

Posted On Sunday, May 2, 2010 6:23 PM

Copyright © Jacek | Powered by: GeeksWithBlogs.net | Join free