title: How to achieve click event via dependency property in silverlight?
body: <p>I'm fairly new to the world of Silverlight so please bear with me. I have created a custom pivot item control to be displayed in a pivot control. Now in this custom control there's a button. Now i could just add the click event handler to the button in the custom control's backing cs file and that would be ok. But is there a way for me to specify the event handler of the custom control's button during the declaration of the custom control? i.e. something like this in my pivot_page.xaml</p>
  
  <pre><code>&lt;custom:myPivotItem background="..." height=".." width=".." click="myHandler"/&gt;
  </code></pre>
  
  <p>where myHandler is declared in pivot_page.cs? Thanks</p>