Cases where TemplatedParent might not be a null reference (Nothing in Visual Basic) would include operations such as hit-testing, event handling for certain low-level input events, or working with enumerators, which may have returned elements that came from templates.