BamlLocalizableResource.Content Property

Definition

Gets or sets the localizable content.

public string Content { get; set; }

Property Value

The localizable content string.

Remarks

Child elements by default are represented as placeholders. The placeholder starts with a "#" character, then the child element's UID, then a ";". For example, "#TextBlock1;#TextBlock2;". Normal "#" and ";" characters inside the content are escaped with a "\". This applies to the actual "\" character itself. The removal of child placeholders in content is not allowed, because an element may be referenced in code, which could cause the localized application to fail at run time. However, it is allowed to reorder them in localizations.

Child elements in the content can also be formatted as XML markup to improve readability. To do so, when BamlLocalizer queries the ElementLocalizability of a desired element, set the FormattingTag property to the desired tag name.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9