The RectToSizeConverter type exposes the following members.

Constructors

  NameDescription
RectToSizeConverter
Initializes a new instance of the RectToSizeConverter class.

Methods

  NameDescription
Convert
Obtains the size of the given Rect object, after applying the WidthFactor and HeightFactor as scale factors and adding the WidthOffset and HeightOffset. property values.
ConvertBack
Converts a value from a binding target for writing to a binding source.

Properties

  NameDescription
HeightFactor
Gets or sets a scale factor that is applied to the height of the Rect. The default factor is 1.
HeightOffset
Gets or sets an amount that is added to the (scaled) height of the Rect.
WidthFactor
Gets or sets a scale factor that is applied to the width of the Rect. The default factor is 1.
WidthOffset
Gets or sets an amount that is added to the (scaled) width of the Rect.

See Also