title: WPF Adorner Layer Outside Window
body: <p>I have a WPF window with a textbox control. The control has an adorner that is made visible when the textbox has keyboardfocus.</p>
  
  <p>As you can see in the screenshot below, the adorner is limited to the bounds of the window. How can I make it so that the full adorner is displayed?</p>
  
  <p><a href="https://i.stack.imgur.com/PTLKz.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PTLKz.png" alt="enter image description here"></a></p>
  
  <p>Adorner template is:</p>
  
  <pre><code>&lt;DataTemplate x:Key="ContextualInfoDataTemplate"&gt;
      &lt;Border 
          Background="#E1E1E1" 
          CornerRadius="6"
          Margin="50,36,0,0"&gt;
          &lt;Border.Effect&gt;
              &lt;DropShadowEffect/&gt;
          &lt;/Border.Effect&gt;
          &lt;Grid Width="200" Margin="4,3,4,4"&gt;
              &lt;TextBlock TextWrapping="Wrap" Text="OverridenAutomationId"/&gt;
          &lt;/Grid&gt;
      &lt;/Border&gt;
  &lt;/DataTemplate&gt;
  </code></pre>