<!-- Example 13-60. Loading a custom visual into a window -->

<Window x:Class="VisualRender.Window1"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:local="clr-namespace:VisualRender"
  Title="Visual Layer Rendering">
  <Canvas>
    <local:MyFramedTextRenderer Canvas.Top="10" Canvas.Left="10"
         x:Name="customRender" />
  </Canvas>
</Window>

<!-- End of Example 13-60. -->