ColorPicker.Orientation 속성

정의

ColorPicker에서 편집 컨트롤의 방향을 가져오거나 설정합니다.

이 설명서는 UWP용 WinUI 2에 적용됩니다(Windows 앱 SDKWinUI의 경우 Windows 앱 SDK 네임스페이스 참조).

public:
 property Orientation Orientation { Orientation get(); void set(Orientation value); };
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::Orientation::Vertical")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::Orientation::Vertical")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::Orientation::Vertical")]
Orientation Orientation();

void Orientation(Orientation value);
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::Orientation::Vertical")]
public Orientation Orientation { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::Orientation::Vertical")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::Orientation::Vertical")] set; }
Public Property Orientation As Orientation

속성 값

ColorPicker에서 편집 컨트롤의 방향입니다. 기본값은 Vertical입니다.

특성
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

설명

속성이 로 Orientation 설정된 Horizontal경우 ColorPicker는 IsMoreButtonEnabled 속성을 적용하지 않습니다. 대신 텍스트 입력 필드는 항상 ColorPicker의 측면에 표시됩니다.

가로 방향 텍스트 입력 여백

모드에서 Horizontal 텍스트 입력 필드를 사용하는 경우 텍스트 입력 필드의 오른쪽에 의 여백 122px 이 있습니다. 이 여백은 필드 레이블의 다양한 지역화를 고려하며 해당 레이블이 잘리지 않도록 합니다. 이 여백은 간단한 스타일 지정 리소스에 ColorPickerTextInputHorizontalOrientationMargin 의해 결정됩니다.

  • 앱이 영어로만 제공되는 경우 이 리소스를 재정의하고 오른쪽 여백을 로 74px 설정하여 컨트롤의 가로 공간을 개선할 수 있습니다.
  • 가 로 설정된 Vertical경우 Orientation 리소스가 아무런 영향을 주지 않습니다.

적용 대상

추가 정보