title: Embed a System.String in XAML
body: <p>Is there a way to embed a string in XAML, give it and ID and refer to it later.</p>
  
  <p>I have tried:</p>
  
  <pre><code>    &lt;Window x:Class="WpfApp1.Window1"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:System="clr-namespace:System;assembly=mscorlib"
          Title="Window1" Height="300" Width="500"&gt;
          &lt;Grid&gt;
              &lt;System:String&gt;Test&lt;/System:String&gt;
          &lt;/Grid&gt;
      &lt;/Window&gt;
  </code></pre>
  
  <p>And get error:<br>
  Cannot add instance of type 'String' to a collection of type 'UIElementCollection'. Only items of type 'UIElement' are allowed.</p>
  
  <p>Could I do this if I nested the String somewhere else in the XAML? or inside a non UI element? Then do I just give it a Name attribute?</p>