title: Setting Canvas to a control template?
body: <p>I have a Canvas in a ResourceDictionary xaml file like so:</p>
  
  <pre><code>&lt;Canvas x:Key="Icon"&gt;
       &lt;Path ... /&gt;
       &lt;Path ... /&gt;
  &lt;/Canvas&gt;
  </code></pre>
  
  <p>In my code-behind I load this icon using</p>
  
  <pre><code>LayoutGrid.Children.Add(FindResource("Icon") as Canvas);
  </code></pre>
  
  <p>And this works fine. Now I want to create a button that uses the same icon as a template. So I create a control template:</p>
  
  <pre><code>&lt;ControlTemplate x:Key="IconTemplate"&gt;
      ...
  &lt;/ControlTemplate&gt;
  </code></pre>
  
  <p>Now here's the problem: How would I put the "Icon" resource canvas into the control template? As far as I know, Canvas does not have a Style or Template property. It has a Children property, but it's not accessible via XAML. How would I go about using my canvas in a template?</p>