<!-- Example 18-33. Using AdornerDecorator -->

<Window x:Class="AdornerExample.UseAdornerDecorator"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="AdornerExample" Height="300" Width="300"
    >
  <Grid>
    <Grid.ColumnDefinitions>
      <ColumnDefinition />
      <ColumnDefinition />
    </Grid.ColumnDefinitions>


    <AdornerDecorator Grid.Column="1">
      <TextBlock x:Name="targetElement" Margin="40,40,0,0" Text="Test" />
    </AdornerDecorator>
  </Grid>
</Window>

<!-- End of Example 18-33. -->