Readability 枚举

定义

为二进制 XAML (BAML) 类或类成员指定 LocalizabilityAttribute 的可读性值。Specifies the readability value of a LocalizabilityAttribute for a binary XAML (BAML) class or class member.

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

字段

Inherit 2

目标值可读性继承自其父节点。Targeted value readability is inherited from its parent node.

Readable 1

目标值为可读文本。Targeted value is readable text.

Unreadable 0

目标值不可读。Targeted value is not readable.

示例

下面的代码示例演示为按钮LocalizabilityAttribute定义的可读性值。The following code example shows the readability value of a LocalizabilityAttribute defined for a button.

<!-- 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特性可应用于类、属性或方法。A LocalizabilityAttribute attribute can be applied to a class, property, or method.

有关如何使用本地化特性的详细信息, 请参阅本地化特性和注释For more information on how to use localization attributes, see Localization Attributes and Comments.

适用于

另请参阅