Viewbox.StretchDirection 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
크기 조정이 내용에 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
속성 값
크기 조정이 내용에 적용되는 방식을 결정하는 A StretchDirectionViewbox입니다. 기본값은 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 이 없도록 방지할 수 있습니다.
종속성 속성 정보
| Item | 가치 |
|---|---|
| 식별자 필드 | StretchDirectionProperty |
메타데이터 속성이 다음으로 설정됩니다. true |
AffectsMeasure |