Light Up the Web

Blog about programming in Silverlight

  Home  |   Contact  |   Syndication    |   Login
  24 Posts | 0 Stories | 45 Comments | 0 Trackbacks

News

My post about Deep Zoom Composer was recommended by Scott Guthrie! :) (see here)

Archives

About Me

News

Who was here

May 2010 Entries

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...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

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>...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati