public override Rect GetComputedTightBounds(Base2DElement context) { PathGeometry renderedGeometry = this.RenderedGeometry; if (renderedGeometry == null) { return(Rect.Empty); } Matrix transformToElement = this.GetComputedTransformToElement((SceneElement)context); return(PathGeometryUtilities.TightExtent(renderedGeometry, transformToElement)); }
public Rect GetComputedBounds(Base2DElement context) { Rect actualBounds = this.ViewModel.DefaultView.GetActualBounds(this.Visual); return(this.ViewModel.DefaultView.TransformBounds(this.Visual, context.Visual, actualBounds)); }
public virtual Rect GetComputedTightBounds(Base2DElement context) { return(this.GetComputedBounds(context)); }