CompositionSurfaceBrush.Stretch Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Controls the scaling that is applied to the contents the ICompositionSurface with respect to the size of the SpriteVisual that is being painted.
public:
property CompositionStretch Stretch { CompositionStretch get(); void set(CompositionStretch value); };
CompositionStretch Stretch();
void Stretch(CompositionStretch value);
public CompositionStretch Stretch { get; set; }
var compositionStretch = compositionSurfaceBrush.stretch;
compositionSurfaceBrush.stretch = compositionStretch;
Public Property Stretch As CompositionStretch
Property Value
Controls how the brush's content is scaled with respect to the size of the SpriteVisual it is painted onto.
If a CompositionSurfaceBrush is input as the Source to a CompositionNineGridBrush, the CompositionSurfaceBrush.Stretch property specifies how the center of the Nine-Grid is stretched with respect to the size of the SpriteVisual associated with the CompositionNineGridBrush.
Applies to
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro