1 <Canvas xmlns="http://schemas.microsoft.com/client/2007"
2 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Loaded="OnLoaded">
5 <RectangleGeometry x:Name="clipRect" Rect="0,0,10,50"/>
7 <Rectangle Fill="Red" StrokeThickness="10" Stroke="Green" Width="100" Height="100" />
8 <!-- this should be drawn over the previous rectangle (no blending) -->
9 <Rectangle Canvas.Left="50" Canvas.Top="50" Fill="Blue"
10 Width="100" Height="100" />
13 <Canvas Canvas.Top="80" Opacity="0.5">
15 <RectangleGeometry x:Name="clipRect2"/>
17 <Rectangle Fill="Green" StrokeThickness="10" Stroke="Red" Width="100" Height="100" />
18 <!-- this should be drawn over the previous rectangle (no blending) -->
19 <Rectangle Canvas.Left="50" Canvas.Top="50" Fill="Yellow"
20 Width="100" Height="100" />
23 <Canvas Canvas.Top="180" Opacity="0.5">
25 <RectangleGeometry x:Name="clipRect3" Rect="0,0,10,50">
26 <RectangleGeometry.Transform>
27 <TranslateTransform x:Name="xform" X="10" Y="10"/>
28 </RectangleGeometry.Transform>
31 <Rectangle Fill="Yellow" StrokeThickness="10" Stroke="Purple" Width="100" Height="100" />
32 <!-- this should be drawn over the previous rectangle (no blending) -->
33 <Rectangle Canvas.Left="50" Canvas.Top="50" Fill="Yellow"
34 Width="100" Height="100" />