WHAT IS THE CANVAS AND STACKPANEL IN XAML ?

Total Post:40

Points:280
WPF 
WPF
 4522  View(s)
Ratings:
Rate this:
how use it?
  1. 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-29-2018 02:46:34 AM

Answer

NEWSLETTER

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