Can I use Action in Windows Phone development

Topics: Actions & Coroutines, Getting Started
Sep 8, 2011 at 1:48 PM

As i tried to use action in one of my WP7 application to trigger an event,but it unable to pass the Action parameter.

Need help.

Thanx in advance..

Sep 8, 2011 at 2:46 PM

yes actions work in Wp7, post your xaml / C# code of the issue you are seeing so as to better help :)

Sep 8, 2011 at 6:45 PM

Parameters do not work in WP7 unless they are literal values or special values. This is a limitation of WP7. However, it may be fixed in Mango. I haven't checked yet.

Sep 9, 2011 at 4:51 AM

There is a flexgrid  in my MainPage.xaml, upon selection of a row i just want to pass the selected rowindex to MainPageViewModel.

this is in MainPage.xaml

 <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">           

<C1_Phone_FlexGrid:C1FlexGrid Name="orderlistgrid" Margin="12,91,22,191">               


<i:EventTrigger EventName="Tap">                       

<cal:ActionMessage MethodName="ItemSelected">                           

<cal:Parameter Value="{Binding ElementName=orderlistgrid, Path=SelectedIndex}" />                       





this is in my MainPageViewModel..................

 public void ItemSelected(int indexid)         

 {      int id =indexid;    }

but here i am getting the value of id is always 0 for all selected row.