Canvas

0
Canvas:-
 

It is used to create a Container for Graphics and animation in WPF.for application software and forms elements, the canvas will not be used.

it also provides multiple dimensions to arrange the element on a particular position on Window.

Canvas uses Canvas.left,Canvas.Right,Canvas.Bottom and Canvas.Top property to arrange elements.



<Canvas>

        <Ellipse Width="100" Height="100" Fill="Aqua" Canvas.Left="100" Canvas.Top="120"></Ellipse>
        <Rectangle Width="100" Height="100" Fill="Yellow" Canvas.Left="250" Canvas.Top="120"></Rectangle>
    </Canvas>





Post a Comment

0Comments

POST Answer of Questions and ASK to Doubt

Post a Comment (0)