IXRTileBrush::SetStretch (Compact 2013)
3/28/2014
This method sets a value that specifies how the content of this tile brush stretches to fit its tiles.
Syntax
virtual HRESULT STDMETHODCALLTYPE SetStretch(
XRStretch Stretch
) = 0;
Parameters
- Stretch
[in] XRStretch enumerated type that indicates how the tile-brush content is projected onto its base tile.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
The Stretch value can be set to one of the following values:
- XRStretch_None: The tile-brush content does not stretch to fill the tile.
- XRStretch_Uniform: The tile-brush content scales to fit the tile dimensions but preserves its original aspect ratio.
- XRStretch_UniformToFill: The tile-brush content scales to completely fill the output area but preserves its original aspect ratio.
- XRStretch_Fill: The tile-brush content scales to fit the tile. Because the content's height and width are scaled independently, the tile-brush content might be distorted in order to completely fill the output tile.
The following illustration shows the different XRStretch settings:
None |
Uniform |
UniformToFill |
Fill |
---|---|---|---|
.NET Framework Equivalent
System.Windows.Media.TileBrush.Stretch
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |