protected override Size MeasureOverride( Size availableSize ) { // Scale up or down the icon if possible if( Stage != null && !( double.IsInfinity( availableSize.Width ) || double.IsInfinity( availableSize.Height ) ) ) if ( !availableSize.Equals( StageDim ) ) { ScaleStage( SizeGiven = availableSize ); } return base.MeasureOverride( availableSize ); }
public bool Equals(Size value) { return(Size.Equals(this, value)); }
public override bool Equals(object o) { return(o is Size && Size.Equals(this, (Size)o)); }