Sign In|Join
Home/Silverlight.NET Forums/Programming with .NET - General/How to specify the height and width of Canvas by percentage.? /How to specify the height and width of Canvas by percentage.?
Star
14968 Points
2799 Posts
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>
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>
Regards,
Michael Sync
Silverlight MVP
Blog : http://michaelsync.net