LocalizationCategory Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the category value of a LocalizabilityAttribute for a binary XAML (BAML) class or class member.
public enum class LocalizationCategory
public enum LocalizationCategory
type LocalizationCategory =
Public Enum LocalizationCategory
- Inheritance
Fields
Button | 4 | A Button or related control. |
CheckBox | 5 | A CheckBox or related control. |
ComboBox | 6 | A ComboBox or related control such as ComboBoxItem. |
Font | 14 | Font-related data such as font name, style, or size. |
Hyperlink | 11 | A Hyperlink or related control. |
Ignore | 16 | Do not localize this resource. This does not apply to any child nodes that might exist. |
Inherit | 15 | Inherits its category from a parent node. |
Label | 3 | A Label or related control. |
ListBox | 7 | A ListBox or related control such as ListBoxItem. |
Menu | 8 | |
NeverLocalize | 17 | Do not localize this resource, or any child nodes whose category is set to Inherit. |
None | 0 | Resource does not belong to a standard category. |
RadioButton | 9 | A RadioButton or related control. |
Text | 1 | For a lengthy piece of text. |
TextFlow | 12 | For panels that can contain text. |
Title | 2 | For a single line of text, such as text used for a title. |
ToolTip | 10 | A ToolTip or related control. |
XmlData | 13 | XML data. |
Examples
The following code example shows the category 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>
Remarks
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.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기