Share via


ColorPicker.Orientation プロパティ

定義

ColorPicker の編集コントロールの向きを取得または設定します。

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; }
var orientation = colorPicker.orientation;
colorPicker.orientation = orientation;
Public Property Orientation As Orientation

プロパティ値

ColorPicker の編集コントロールの向き。 既定値は Vertical です。

属性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

注釈

プロパティが OrientationHorizontal設定されている場合、ColorPicker は IsMoreButtonEnabled プロパティを適用しません。 代わりに、テキスト入力フィールドは常に ColorPicker の側に表示されます。

水平方向のテキスト入力余白

モードで Horizontal テキスト入力フィールドが使用されている場合、テキスト入力フィールドの右側に の余白 122px が表示されます。 このマージンは、フィールドのラベルのさまざまなローカライズを考慮し、それらのラベルが途切れないようにします。 この余白は、軽量の ColorPickerTextInputHorizontalOrientationMargin スタイル設定リソースによって決まります。

  • アプリが英語でのみ使用できる場合は、このリソースをオーバーライドし、右余白を に 74px 設定して、コントロールの水平方向のフットプリントを向上させることができます。
  • が にVertical設定されている場合Orientation、リソースに影響はありません。

適用対象

こちらもご覧ください