protected override Size MeasureOverride(Size availableSize)
{
if ((this.Geometry == null) || (this.Geometry is GeoPoint))
{
return base.MeasureOverride(availableSize);
}
this.SetPath();
Rectangle2D bounds = this.Geometry.Bounds;
if (!Rectangle2D.IsNullOrEmpty(bounds))
{
return new Size(bounds.Width / this.Resolution, bounds.Height / this.Resolution);
}
return new Size(0.0, 0.0);
}