added SSCLI 1.0
[windows-sources.git] / sdk / samples / WPFSamples / CanvasZ-Order / xaml / default.xaml
blobf66c4a7574c507c0aedbe21f0b1c7f8153d0459b
1 <!-- <Snippet1> -->
2 <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" WindowTitle="ZIndex Sample">
3   <Canvas>
4     <Rectangle Canvas.ZIndex="3" Width="100" Height="100" Canvas.Top="100" Canvas.Left="100" Fill="blue"/>
5     <Rectangle Canvas.ZIndex="1" Width="100" Height="100" Canvas.Top="150" Canvas.Left="150" Fill="yellow"/>
6     <Rectangle Canvas.ZIndex="2" Width="100" Height="100" Canvas.Top="200" Canvas.Left="200" Fill="green"/>
8     <!-- Reverse the order to illustrate z-index property -->
10     <Rectangle Canvas.ZIndex="1" Width="100" Height="100" Canvas.Top="300" Canvas.Left="200" Fill="green"/>
11     <Rectangle Canvas.ZIndex="3" Width="100" Height="100" Canvas.Top="350" Canvas.Left="150" Fill="yellow"/>
12     <Rectangle Canvas.ZIndex="2" Width="100" Height="100" Canvas.Top="400" Canvas.Left="100" Fill="blue"/>
13   </Canvas>
14 </Page>
15 <!-- </Snippet1> -->