c# - Listpicker tap event in fullscreen mode not working correctly -
I am developing the Windows Phone 8 application.
I am using the ListPicker option.
My Listpikr code The values are bound by the list by using the webservice (json format) for service. Jason result comes like {ID:" 11 " , The name: "fast food", root_id: "4", level: "1" for Covalent values, There is a problem in this event My problem The first time I click on pizza, this value shows = ID message 9 msgbox Next I am on fine food Clicking Next I click on Fast Food, it looks in msg = 10 (10 is the mood of Ferdinand) Next I click on Italian this shows Output How to resolve this problem. Use list picture selection
& lt; Toolkit: List Picture X: Name = "lpfilter" foreground = "white" bordertyxize = "0" margin = "300, 0,0,0" height = "80" width = "50" visibility = "visible" & gt; & Lt; Toolkit: ListPicker.Background & gt; & Lt; ImageBrush ImageSource = "/ Property / Images / Filter Pages" /> & Lt; / Toolkit: ListPicker.Background & gt; & Lt; Toolkit: ListPicker.ItemTemplate & gt; & Lt; DataTemplate & gt; & Lt; Text block text = "{binding name}" visibility = "collapsed" foreground = "red" /> & Lt; / DataTemplate & gt; & Lt; / Toolkit: ListPicker.ItemTemplate & gt; & Lt; Toolkit: ListPicker.FullModeItemTemplate & gt; & Lt; DataTemplate & gt; & Lt; TextBlock Tap = "TextBlock_Tap" & gt; & Lt; Run text = "{binding name}" /> & Lt; / TextBlock & gt; & Lt; / DataTemplate & gt; & Lt; / Toolkit: ListPicker.FullModeItemTemplate & gt; & Lt; / Toolkit: ListPicker & gt;
[- {id: 9 ", name:" pizza ", root_id:" 4 ", level:" 1 ",} {ID: "11": "ID:" 10 ", name:" OK denigrated ", root_ID:" 4 ", level:" 1 ",},
public zero merchandise {string bus_caturl = Http://xxxxx.com/Service/filterquery.php?rootid= "+ bus_catval; webclient bus_catwc = new webclient (); bus_catwc.DownloadStringAsync (new Uri (bus cactral), Urikkind.relevative); Bus_catwc.DownloadStringCompleted + = bus_catwc_DownloadStringCompleted;} zero bus_catwc_DownloadStringCompleted (Object Sender, DownloadStringCompletedEventArgs E) {var bus_catdata = e.Result; Var bus_catvalue = JsonConvert.DeserializeObject & lt; list & lt; bus_catbinddata & gt; & gt; (Bus_CataData); LPfilter.ItemsSource = bus_catvalue ;}
Private Zero TextBlock_Tap (Object Sender, System.Windows.Input.GestureEventArgs E) {bus_catbinddata element = LPfilter.selectedItem bus_catbinddata; Int val = LPfilter.SelectedIndex; Filterid = int.Parse (elements.id); MessageBox.Show (filterid.ToString ()); }
& lt; Toolkit: List Picture: Name E = "LPF Filter" Foreground = "White" BorderText = "0" margin = "300,0,0,0" height = "80" width = "50" visibility = "visible" selection switch = "List Picture-Selection Change +
Comments
Post a Comment