Skip to content

Instantly share code, notes, and snippets.

@rkusa
Created October 8, 2010 18:41
Show Gist options
  • Save rkusa/617292 to your computer and use it in GitHub Desktop.
Save rkusa/617292 to your computer and use it in GitHub Desktop.
GeneralTransform elementTransform = element.TransformToVisual(container);
Rect rect = elementTransform.TransformBounds(new Rect(new Point(0, 0), element.RenderSize));
rect.Intersect(new Rect(new Point(0, 0), MainListBox.RenderSize));
return rect != Rect.Empty;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment