BamlLocalizableResource.Content Property
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.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈