Readability 枚举

定义

为二进制 XAML (BAML) 类或类成员指定 LocalizabilityAttribute 的可读性值。

public enum class Readability
public enum Readability
type Readability = 
Public Enum Readability
继承
Readability

字段

Inherit 2

目标值可读性继承自其父节点。

Readable 1

目标值为可读文本。

Unreadable 0

目标值不可读。

示例

下面的代码示例显示了为按钮定义的可读性值 LocalizabilityAttribute

<!-- 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属性可以应用于类、属性或方法。

有关如何使用本地化属性的详细信息,请参阅 本地化属性和注释

适用于

另请参阅