LocalizabilityAttribute.Category Özellik

Tanım

Yerelleştirme özniteliğinin hedeflenen değerinin kategori ayarını alır.

public:
 property System::Windows::LocalizationCategory Category { System::Windows::LocalizationCategory get(); };
public System.Windows.LocalizationCategory Category { get; }
member this.Category : System.Windows.LocalizationCategory
Public ReadOnly Property Category As LocalizationCategory

Özellik Değeri

Yerelleştirme özniteliğinin kategori ayarı.

Örnekler

Aşağıdaki kod örneği, bir düğme için tanımlanan yerelleştirme özniteliklerinin kategori ayarlarını gösterir.

<!-- 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>

Açıklamalar

Aşağıdaki tabloda, yerelleştirme özniteliğinin değiştirilebilirlik ayarları gösterilmektedir.

Kategori ayarı Anlamı
None Kaynak standart bir kategoriye ait değil.
Text Uzun bir açıklayıcı metin parçası.
Title Başlık gibi tek bir metin satırı.
Label Denetim etiketi gibi kısa bir metin dizesi.
Button Bir Button veya ilgili denetim.
CheckBox Bir CheckBox veya ilgili denetim.
ComboBox Gibi bir ComboBox veya ilgili denetim ComboBoxItem.
ListBox Gibi bir ListBox veya ilgili denetim ListBoxItem.
Menu Gibi bir Menu veya ilgili denetim MenuItem.
RadioButton Bir RadioButton veya ilgili denetim.
ToolTip Bir ToolTip veya ilgili denetim.
Hyperlink Bir Hyperlink veya ilgili denetim.
TextFlow FlowDocument Metin içerebilen bir panel veya başka bir panel.
XmlData XML verileri.
Font Yazı tipi ailesi, yazı tipi stili veya yazı tipi boyutu gibi yazı tipiyle ilgili veriler.
Inherit Kategoriyi üst düğümden devralır.
Ignore Bu kaynağı yerelleştirmeyin. Bu, kaynağın alt düğümleri için geçerli değildir.
NeverLocalize Bu kaynağı veya kategorisi olarak ayarlanmış Inheritalt düğümlerini yerelleştirmeyin.

Şunlara uygulanır

Ayrıca bkz.