Modifiability 列挙型

定義

バイナリ XAML (BAML) クラスまたはクラス メンバーの LocalizabilityAttribute の変更可能性の値を指定します。

public enum class Modifiability
public enum Modifiability
type Modifiability = 
Public Enum Modifiability
継承
Modifiability

フィールド

名前 説明
Unmodifiable 0

ターゲット値は、ローカライザーによって変更できません。

Modifiable 1

ターゲット値は、ローカライザーによって変更できます。

Inherit 2

ターゲット値の変更可能性は、親ノードから継承されます。

次のコード例は、ボタンに対して定義されているローカライズ属性の変更可能性の値を示しています。

<!-- Define localization attributes for the button.
      - The content is visible to the localizer and can be changed.
      - The font family property is visible to the localizer but cannot be changed. -->
  <Button
    FontFamily="Microsoft San Serif"
    Localization.Attributes=
      "$Content(Button Readable Modifiable) FontFamily(Font Readable Unmodifiable)" >
    your company name here
  </Button>

注釈

LocalizabilityAttribute属性は、クラス、プロパティ、またはメソッドに適用できます。

ローカライズ属性の使用方法の詳細については、「 ローカリゼーション属性とコメント」を参照してください。

適用対象

こちらもご覧ください