ProgressBar.Orientation 속성

정의

ProgressBar의 방향(가로 또는 세로)을 가져오거나 설정합니다.

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입니다.

예제

다음 예제에서는 가로 ProgressBar 막대를 만드는 속성을 사용 Orientation 하는 방법을 보여 집니다.

ProgressBar progbar = new ProgressBar();
progbar.IsIndeterminate = false;
progbar.Orientation = Orientation.Horizontal;
progbar.Width = 150;
progbar.Height = 15;
Duration duration = new Duration(TimeSpan.FromSeconds(10));
DoubleAnimation doubleanimation = new DoubleAnimation(100.0, duration);
progbar.BeginAnimation(ProgressBar.ValueProperty, doubleanimation);
Dim progbar As New ProgressBar()
progbar.IsIndeterminate = False
progbar.Orientation = Orientation.Horizontal
progbar.Width = 150
progbar.Height = 15
Dim duration As New Duration(TimeSpan.FromSeconds(10))
Dim doubleanimation As New DoubleAnimation(100.0, duration)
progbar.BeginAnimation(ProgressBar.ValueProperty, doubleanimation)

설명

종속성 속성 정보

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

적용 대상