Geeks With Blogs
Light Up the Web Blog about programming in Silverlight

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 ( )

2. Add dll to your application

<UserControl .....
    xmlns:behavior="clr-namespace:CenterAncScaleBehavior;assembly=CenterAncScaleBehavior"  .... >

        <behavior:CenterAncScaleBehavior />

    <Grid > ... </Grid>


3. DONE! Your application is ready!


Watch movie to see how it works (66 seconds):

See examples

Application without "Center And Scale Behavior":

Application with "Center And Scale Behavior":


Source code and dlls



Jacek Ciereszko

Posted on Sunday, May 2, 2010 9:42 PM | Back to top

Copyright © Jacek | Powered by: | Join free