WHAT IS THE CANVAS AND STACKPANEL IN XAML ?

Anurag Sharma

Total Post:40

Points:280
Posted by  Anurag Sharma
WPF 
WPF
 4196  View(s)
Ratings:
Rate this:
how use it?
  1. Amit Singh

    Post:103

    Points:721
    Re: what is the canvas and stackpanel in xaml ?

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!