public static Rectangle2D GetBBox(DependencyObject obj) { return (Rectangle2D)obj.GetValue(BBoxProperty); }