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

속성 값

Stretch

사용 가능한 공간에 콘텐츠를 맞추는 방식을 결정하는 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

설명

종속성 속성 정보

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

적용 대상

추가 정보