Пример #1
0
        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 );
        }
Пример #2
0
 public bool Equals(Size value)
 {
     return(Size.Equals(this, value));
 }
Пример #3
0
 public override bool Equals(object o)
 {
     return(o is Size && Size.Equals(this, (Size)o));
 }