<p>I want to add the selected item from the <code>TreeView</code> to the <code>ListBox</code> control using <code>DataBinding</code> (If it can work with <code>DataBinding</code>). </p>

<pre><code>&lt;TreeView HorizontalAlignment="Left" 
          Margin="30,32,0,83" 
          Name="treeView1" 
          Width="133" &gt;

&lt;/TreeView&gt;
&lt;ListBox VerticalAlignment="Top" 
         Margin="208,36,93,0" 
         Name="listBox1" 
         Height="196" &gt;       
&lt;/ListBox&gt;
</code></pre>

<p><code>TreeView</code> is populated from the code behind page with some dummy data. </p>

[{'answer_id': 54665, 'author': 'Dillie-O', 'author_id': 71, 'author_profile': 'https://Stackoverflow.com/users/71', 'pm_score': 0, 'selected': False, 'text': '<p>I\'m pretty sure it is possible, since WPF is really flexible with data binding, but I haven\'t done that specific scenario yet.</p>\n\n<p>I\'ve been following a <a href="http://blogs.msdn.com/wpfsdk/archive/2006/10/19/wpf-basic-data-binding-faq.aspx" rel="nofollow noreferrer">WPF Databinding FAQ</a> from the MSDN blogs as of late and it provides a lot of insights that might help.</p>\n'}, {'answer_id': 55830, 'author': 'Dylan', 'author_id': 4580, 'author_profile': 'https://Stackoverflow.com/users/4580', 'pm_score': 1, 'selected': False, 'text': '<p>You can bind to an element using ElementName, so if you wanted to bind the selected tree item to the ItemsSource of a ListBox:</p>\n\n<pre><code>ItemsSource="{Binding SelectedItem, ElementName=treeView1}"\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/54440', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3797/']