title: WPF call method parent from usercontrol
body: <p>I want to call a method from user control in WPF</p>
  
  <p>I´ve a Window with a list and I have a method that get this list.</p>
  
  <pre><code>private ObservableCollection&lt;int&gt; _lst;
  
  public MainWindow()
  {
       InitializeComponent();
  
       getList();
      }
  
  public void getList()
  {
      _lst = List&lt;int&gt;(); 
  }
  </code></pre>
  
  <p>In this page I use a usercontrol:</p>
  
  <pre><code>UserControlAAA userControl = new UserControlAAA ();
  
  gridDatos.Children.Add(userControl);
  </code></pre>
  
  <p>I want to do something like this inside of usercontrol:</p>
  
  <pre><code>Window win = Window.GetWindow(this);
  
  win.getList();
  </code></pre>
  
  <p>but I can´t call win.getList();</p>
  
  <p>I want to call the method getList from my usercontrol, but I don´t know how to do it.</p>