I've noticed zindex behaviour little different when created thru XAML vs c# code.
I've created Canvas and added rectangle and any other UI element added after that in the XAML the other UIelement gets the mouse click and it's rendered on top of rectangle.
contrarily in the C# i've to explicitly add Rectangle ZIndex needs to be set to -1 and hittest needs to be set to false as well. Little puzzled.
Here's the sample XAML
rect.Width = 600;
rect.Height = 425;
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?