title: Accessing XAML object in codebehind(WPF)
body: <p>I'm creating object in XAML like this </p>
  
  <pre><code>&lt;Window.Resources&gt;
          &lt;local:DataReceiver x:Key="request"&gt;
          &lt;/local:DataReceiver&gt;
      &lt;/Window.Resources&gt;
  </code></pre>
  
  <p>how can I call this objects method from codebehind?</p>