Επεξεργασία

Κοινή χρήση μέσω


BamlLocalizableResource.Content Property

Definition

Gets or sets the localizable content.

public:
 property System::String ^ Content { System::String ^ get(); void set(System::String ^ value); };
public string Content { get; set; }
member this.Content : string with get, set
Public Property Content As String

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