LocalizabilityAttribute.Modifiability 属性


获取或设置本地化特性的目标值的可修改性设置。Gets or sets the modifiability setting of the localization attribute's targeted value.

 property System::Windows::Modifiability Modifiability { System::Windows::Modifiability get(); void set(System::Windows::Modifiability value); };
public System.Windows.Modifiability Modifiability { get; set; }
member this.Modifiability : System.Windows.Modifiability with get, set
Public Property Modifiability As Modifiability


本地化特性的可修改性设置。The modifiability setting of the localization attribute.


下面的代码示例演示为按钮定义的本地化特性的修改性设置。The following code example shows the modifiability setting 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. -->
    FontFamily="Microsoft San Serif"
      "$Content(Button Readable Modifiable) FontFamily(Font Readable Unmodifiable)" >
    your company name here


下表显示了本地化特性的修改设置。The following table shows the modifiability settings of the localization attribute.

修改设置Modifiability setting 含义Meaning
Modifiable 目标值可由本地化人员修改。Targeted value is modifiable by localizers.
Unmodifiable 目标值不能由本地化人员修改。Targeted value is not modifiable by localizers.
Inherit 目标值的可修改性从其父节点继承。Targeted value's modifiability is inherited from its parent node.