Silverlight: IsHitTestable = IsHitTestVisible

Intellisense may suggest there is an IsHitTestable property on your elements, but the property's actually called IsHitTestVisible. This stumped me for a while as I was trying to set this property on a Canvas and when told that the property IsHitTestable was unknown, I wrongly assumed that Canvas just didn't support it (which would have been a bit odd but I accepted it without much thought!)

Set IsHitTestVisible to false and the element in question will be ignored for hit testing (so MouseLeftButtonDown events for example will be "passed" through to the element beneath).

Technorati Tags: silverlight