title: Custom events in XAML on my UserControl on Windows Phone 7
body: <p>I'm making a UserControl in Windows Phone 7 and i want that when the user clicks on an Ok button the other XAMLs which are using my UserControl can be able to add an event related to that.</p>
  
  <p>Using an example it's like this:</p>
  
  <p>I have my MainPage.xaml and i'm using my UserControl there, so it's something like:</p>
  
  <pre><code>&lt;local:MyUserControl Canvas.Top="0" x:Name="lSelector" Width="480" Height="800" Value="0000"/&gt;
  </code></pre>
  
  <p>Value is just a DependencyProperty that i created. What i want is to be able to do something like this:</p>
  
  <pre><code>&lt;local:MyUserControl Canvas.Top="0" x:Name="lSelector" Width="480" Height="800" Value="0000" ValueChanged="lSelector_ValueChanged"/&gt;
  </code></pre>
  
  <p>how can i do that?</p>