For a simplified version of my problem, I would like to calculate the bounding box of a layout-transformed (possibly even render-transformed) shape, so that I can always fit
private Rect GetRectOfObject(FrameworkElement _element) { Rect rectangleBounds = new Rect(); rectangleBounds = _element.RenderTransform.TransformBounds(new Rect(0, 0, _element.Width, _element.Height)); return rectangleBounds; }
Maybe this will help out.