Quantcast
Channel: Grid and Canvas
Viewing all articles
Browse latest Browse all 6

Grid and Canvas

$
0
0

Is Grid designed to allow use without any rows and columns in order to use Z-order for one group of items?

 

E.g.:

Code Snippet

 

<Grid>

 <Rectangle Width = 50 Height = 50 Grid.ZIndex = 2/>

 <TexBlock Grid.ZIndex = 1>Foreground Text</TextBlock>

</Grid>

 

Could a Canvas be used just as well for this? Would there be any reason to use Grid instead of Canvas? E.g. Grid does not require coordinates as Canvas may?

 

If Canvas coordinates are not specified for a child, do they default to 0?

 


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images