I am doing a UserControl on Windows Phone 7 and I want that when the user clicks the Ok button, the other XAMLs that use my UserControl can add an event related to this.
Using the example, do the following:
I have my MainPage.xaml and I use my UserControl there, so this is something like:
<local:MyUserControl Canvas.Top="0" x:Name="lSelector" Width="480" Height="800" Value="0000"/>
The value is just the DependencyProperty that I created. I want to be able to do something like this:
<local:MyUserControl Canvas.Top="0" x:Name="lSelector" Width="480" Height="800" Value="0000" ValueChanged="lSelector_ValueChanged"/>
How can i do this?
Thiago val
source share