Home > DeveloperSection > Forums > what is the canvas and stackpanel in xaml ?
Anurag Sharma
Anurag Sharma

Total Post:40

Points:280
Posted on    November-10-2010 12:55 AM

 WPF WPF 
Ratings:


 1 Reply(s)
 3782  View(s)
Rate this:
how use it?


Amit Singh

Total Post:103

Points:721
Posted on    November-26-2010 4:42 AM

These are used for layout management in XAML we use 3 container Canvas, StackPanel and Grid
Example:


<Canvas Background="Blue">
   <TextBlock Height="50" Width="50" Canvas.Left="15" Canvas.Top="15" />
</Canvas>

and

<StackPanel>
   <TextBlock Height="50" Width="50" />
   <TextBlock Height="50" Width="50" />  
</StackPanel>

Modified On Mar-15-2011 09:23:35 AM

Don't want to miss updates? Please click the below button!

Follow MindStick