다음을 통해 공유


Viewbox.Stretch 속성

정의

콘텐츠가 ViewboxStretch 사용 가능한 공간에 맞는 방식을 결정하는 모드를 가져오거나 설정합니다.

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

속성 값

사용 가능한 공간에 콘텐츠가 맞는 방법을 결정하는 A Stretch 입니다. 기본값은 Uniform입니다.

예제

다음 예제에서는 코드를 사용하여 인스턴스 Viewbox 를 만든 다음 속성을 설정하는 Stretch 방법을 보여 줍니다.


// 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

설명

종속성 속성 정보

Item 가치
식별자 필드 StretchProperty
메타데이터 속성이 다음으로 설정됩니다. true AffectsMeasure

적용 대상

추가 정보