Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

  • mchlSync

    mchlSync

    Star

    14968 Points

    2799 Posts

    How to specify the height and width of Canvas by percentage.?

    Dec 14, 2007 06:03 AM | LINK

    The code below doesn't work.  Can anyone tell me how to specify the height or width of Canvas by percentage? Thanks.

     <Canvas xmlns="http://schemas.microsoft.com/client/2007"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Width="100%"
            Height="280"
            Background="Yellow"
            >

    </Canvas>

    (If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

    Regards,
    Michael Sync
    Silverlight MVP

    Blog : http://michaelsync.net