The RectToSizeConverter type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| RectToSizeConverter |
Initializes a new instance of the RectToSizeConverter class.
|
Methods
| Name | Description | |
|---|---|---|
| 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
| Name | Description | |
|---|---|---|
| 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.
|