共用方式為


Viewbox.StretchDirection 屬性

定義

取得或設定 StretchDirection,決定如何將縮放套用至 Viewbox的內容。

public:
 property StretchDirection StretchDirection { StretchDirection get(); void set(StretchDirection value); };
StretchDirection StretchDirection();

void StretchDirection(StretchDirection value);
public StretchDirection StretchDirection { get; set; }
var stretchDirection = viewbox.stretchDirection;
viewbox.stretchDirection = stretchDirection;
Public Property StretchDirection As StretchDirection
<ViewBox StretchDirection="stretchDirectionMemberName" />

屬性值

StretchDirection,決定如何將縮放套用至Viewbox的內容。 預設值為 Both

適用於