I can do this ...">All geek questions in one placeHow to use the symbol "{" in the xaml stringHow to use the symbol {in the xaml string? For instance:.<TextBlock Text="{0}"/> I can do this starting with a space character: <TextBlock Text=" {0}"/> but I'm looking for a better solution.+4wpf xamlSeldon Jul 12 '10 at 15:43source share1 answerLike this: <TextBlock Text="{}{0}"/> {} at the beginning tells the parser not to search for markup extensions.Alternatively, you can specify data without using the attribute: <TextBlock>{0}</TextBlock> +8Christian hayter Jul 12 '10 at 15:48source shareSource: https://habr.com/ru/post/1315425/More articles:Change UIButton Software - iphoneProblems with Eclipse (and m2eclipse) - javaVS Setup project: installing files in different directories - visual-studioHow to set a breakpoint before execution - jdiProblems with Eclipse - javaTrying to animate height, but getting an error, height - NaN - animationSQL - detecting loops in parent child relationships - sql.NET compilation for LIFO support - collectionspowershell and diskpart - powershellSorting an array with numeric strings - stringAll Articles
How to use the symbol {in the xaml string? For instance:.
<TextBlock Text="{0}"/>
I can do this starting with a space character:
<TextBlock Text=" {0}"/>
but I'm looking for a better solution.
Like this:
<TextBlock Text="{}{0}"/>
{} at the beginning tells the parser not to search for markup extensions.
{}
Alternatively, you can specify data without using the attribute:
<TextBlock>{0}</TextBlock>
Source: https://habr.com/ru/post/1315425/More articles:Change UIButton Software - iphoneProblems with Eclipse (and m2eclipse) - javaVS Setup project: installing files in different directories - visual-studioHow to set a breakpoint before execution - jdiProblems with Eclipse - javaTrying to animate height, but getting an error, height - NaN - animationSQL - detecting loops in parent child relationships - sql.NET compilation for LIFO support - collectionspowershell and diskpart - powershellSorting an array with numeric strings - stringAll Articles