ערוך

שתף באמצעות


LocalizationCategory Enum

Definition

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
LocalizationCategory

Fields

Name Value Description
None 0

Resource does not belong to a standard category.

Text 1

For a lengthy piece of text.

Title 2

For a single line of text, such as text used for a title.

Label 3

A Label or related control.

Button 4

A Button or related control.

CheckBox 5

A CheckBox or related control.

ComboBox 6

A ComboBox or related control such as ComboBoxItem.

ListBox 7

A ListBox or related control such as ListBoxItem.

Menu 8

A Menu or related control such as MenuItem.

RadioButton 9

A RadioButton or related control.

ToolTip 10

A ToolTip or related control.

11

A Hyperlink or related control.

TextFlow 12

For panels that can contain text.

XmlData 13

XML data.

Font 14

Font-related data such as font name, style, or size.

Inherit 15

Inherits its category from a parent node.

Ignore 16

Do not localize this resource. This does not apply to any child nodes that might exist.

NeverLocalize 17

Do not localize this resource, or any child nodes whose category is set to Inherit.

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