No target found for method

Topics: Actions & Coroutines, Getting Started
Jan 10, 2012 at 10:32 AM

In Xaml Page..

 <ListBox x:Name="FilterListBox" Margin="30,46,6,94" SelectionMode="Multiple" >       

<ListBox.ItemTemplate>       

<DataTemplate>                               

<StackPanel Orientation="Horizontal"  >                                   

<CheckBox Name="checkBox" Content="{Binding title}" />                                   

<TextBlock Text="{Binding id}" x:Name="GraphId" Visibility="Visible" cal:Message.Attach="[Event Tap] = [Action Add()]"/>       

</StackPanel>       

</DataTemplate>       

</ListBox.ItemTemplate>       

</ListBox>

In ViewModelPage...

public void Add()  {  }

But still am getting No target found for method Add .why?

Regards:

Tarak