Canvas

An area where you can position child elements.


Defines an area within which you can explicitly position child elements
This control gives you complete control
If two child controls overlap the last one defned takes precedence and will overlap the others


<Canvas Name="Canvas1"> 
   <Button Canvas.Left="10">Top Left</Button>
   <Button Canvas.Right="10">Top Right</Button>
   <Ellipse Fill="LightCyan"
        Height="100"
        Width="80"
        Canvas.Left="50"
        Canvas.Top="40"
        Panel.ZIndex="2"/>
   <Rectangle Panel.ZIndex="1"
        Fill="LightBlue"
        Height="100"
        Width="80"
        Canvas.Left="20"
        Canvas.Top="30" /gt
</canvas>




© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext