Modifiability 枚举
定义
为二进制 XAML (BAML) 类或类成员指定 LocalizabilityAttribute 的可修改性值。Specifies the modifiability value of a LocalizabilityAttribute for a binary XAML (BAML) class or class member.
public enum class Modifiability
public enum Modifiability
type Modifiability =
Public Enum Modifiability
- 继承
字段
Inherit | 2 | 目标值可修改性继承自其父节点。Targeted value modifiability is inherited from its parent node. |
Modifiable | 1 | 目标值可由本地化人员修改。Targeted value is modifiable by localizers. |
Unmodifiable | 0 | 目标值不能由本地化人员修改。Targeted value is not modifiable by localizers. |
示例
下面的代码示例演示为按钮定义的本地化特性的修改值。The following code example shows the modifiability value of localization attributes 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.