AdornerStretch 열거형

디자인 뷰의 배율을 조정할 때 표시기(Adorner)의 특정 크기(X 또는 Y)에 대한 동작을 식별하는 데 사용되는 열거형입니다.

네임스페이스:  Microsoft.Windows.Design.Interaction
어셈블리:  Microsoft.Windows.Design.Interaction(Microsoft.Windows.Design.Interaction.dll)

구문

‘선언
Public Enumeration AdornerStretch
public enum AdornerStretch
public enum class AdornerStretch
type AdornerStretch
public enum AdornerStretch

멤버

멤버 이름 설명
None 배율을 조정해도 크기가 동일하게 유지됩니다.따라서 배율을 조정할 때 표시기의 크기나 배율이 변경되지 않습니다.
Stretch 배율을 조정할 때 크기가 늘어납니다.따라서 표시기가 커지지만 렌더링된 요소/선/펜의 스트로크는 증가하지 않습니다.

설명

SetHorizontalStretchSetVerticalStretch 메서드에서 AdornerStretch를 사용하여 디자인 뷰의 배율을 조정할 때 표시기 패널의 배율 조정 동작을 지정합니다.

예제

다음 코드 예제에서는 SetHorizontalStretch 메서드를 사용하여 표시기의 가로 AdornerStretch 값을 지정하는 방법을 보여 줍니다. 이 코드 예제는 AdornerPanel 클래스에 대한 보다 큰 예제의 일부입니다.

' The slider extends the full width of the control it adorns.
AdornerPanel.SetAdornerHorizontalAlignment( _
    opacitySlider, _
    AdornerHorizontalAlignment.Stretch)

' Position the adorner above the control it adorns.
AdornerPanel.SetAdornerVerticalAlignment( _
    opacitySlider, _
    AdornerVerticalAlignment.OutsideTop)

' Position the adorner 5 pixels above the control. 
AdornerPanel.SetAdornerMargin( _
    opacitySlider, _
    New Thickness(0, 0, 0, 5))
// The slider extends the full width of the control it adorns.
AdornerPanel.SetAdornerHorizontalAlignment( 
    opacitySlider, 
    AdornerHorizontalAlignment.Stretch);

// Position the adorner above the control it adorns.
AdornerPanel.SetAdornerVerticalAlignment(
    opacitySlider, 
    AdornerVerticalAlignment.OutsideTop);

// Position the adorner 5 pixels above the control. 
AdornerPanel.SetAdornerMargin(
    opacitySlider, 
    new Thickness(0, 0, 0, 5));

참고 항목

참조

Microsoft.Windows.Design.Interaction 네임스페이스

AdornerPanel

기타 리소스

연습: 디자인 타임 표시기 만들기

표시기 아키텍처