ToolBarTray.Orientation 속성

정의

ToolBarTray의 방향을 지정합니다.

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

속성 값

Orientation

Orientation 값 중 하나입니다. 기본값은 Horizontal입니다.

예제

다음 예제에서는 사용 하는 방법을 보여 줍니다는 Orientation 속성 도구 모음 트레이의;의 방향을 설정 하려면 도구 모음의 방향을 결정 합니다.

<ToolBarTray Orientation="Vertical" 
             Background="White" >
  <ToolBar Band="1" BandIndex="1">
    <Button>
      <Image Source="toolbargraphics\copy.bmp" />
    </Button>
    <Button>
      <Image Source="toolbargraphics\paste.bmp" />
    </Button>
  </ToolBar>
  <ToolBar Band="2" BandIndex="1">
    <Button>
      <Image Source="toolbargraphics\undo.bmp" />
    </Button>
    <Button>
      <Image Source="toolbargraphics\redo.bmp" />
    </Button>
  </ToolBar>
</ToolBarTray>

설명

종속성 속성 정보

식별자 필드 OrientationProperty
메타 데이터 속성 설정 true AffectsParentMeasure

적용 대상

추가 정보