Viewbox.StretchDirection 속성

정의

크기 조정이 StretchDirection의 콘텐츠에 적용되는 방식을 결정하는 Viewbox을 가져오거나 설정합니다.

public:
 property System::Windows::Controls::StretchDirection StretchDirection { System::Windows::Controls::StretchDirection get(); void set(System::Windows::Controls::StretchDirection value); };
public System.Windows.Controls.StretchDirection StretchDirection { get; set; }
member this.StretchDirection : System.Windows.Controls.StretchDirection with get, set
Public Property StretchDirection As StretchDirection

속성 값

StretchDirection

크기 조정이 StretchDirection 의 콘텐츠에 적용되는 방식을 결정하는 Viewbox입니다. 기본값은 Both입니다.

예제

다음 예제에는 인스턴스를 만드는 방법을 보여 줍니다 Viewbox 설정한 후의 StretchDirection 코드를 사용 하 여 속성입니다.


// Create a Viewbox and add it to the Canvas
myViewbox = gcnew Viewbox();
myViewbox->StretchDirection = StretchDirection::Both;
myViewbox->Stretch = Stretch::Fill;
myViewbox->MaxWidth = 400;
myViewbox->MaxHeight = 400;

// Create a Viewbox and add it to the Canvas
myViewbox = new Viewbox();
myViewbox.StretchDirection = StretchDirection.Both;
myViewbox.Stretch = Stretch.Fill;
myViewbox.MaxWidth = 400;
myViewbox.MaxHeight = 400;

' Create a ViewBox and add it to the Canvas
Dim myViewbox As New Viewbox()
myViewbox.StretchDirection = StretchDirection.Both
myViewbox.Stretch = Stretch.Fill
myViewbox.MaxWidth = 400
myViewbox.MaxHeight = 400

설명

이 속성의 내용에 적용 되는 크기 조정 제한을 결정을 Viewbox입니다. 예를 들어이 속성을 사용 하 여 내용의 방지 하기 위해는 Viewbox 원래 크기 보다 크거나 작을 수 없도록 합니다.

종속성 속성 정보

식별자 필드 StretchDirectionProperty
메타 데이터 속성 설정 true AffectsMeasure

적용 대상

추가 정보