Exemplo n.º 1
0
 protected override Size MeasureOverride(Size desiredSize)
 {
     return(new Size(
                (_bitmap == null ? 0 : _bitmap.Width) + Padding.Horizontal + 2,
                (_bitmap == null ? 0 : _bitmap.Height) + Padding.Vertical + 2
                ));
 }
Exemplo n.º 2
0
 protected override Size MeasureOverride(Size desiredSize)
 {
     return new Size(
         (_bitmap == null ? 0 : _bitmap.Width) + Padding.Horizontal + 2,
         (_bitmap == null ? 0 : _bitmap.Height) + Padding.Vertical + 2
     );
 }