How to bind data when using Dependency Properties
<p>I have a main view which contains a wrap panel, this wrappanel contains a list of usercontrols.</p>

<p>I get data into the usercontrol by using DependencyProperty, issue is how do i then bind in the wpf to variables in the usercontrol? if i use</p>

<pre><code>DataContext="{Binding RelativeSource={RelativeSource Self}}"
</code></pre>

<p>it seems to stop the DependencyProperty from working</p>