windows phone 8 - ListPicker DataBinding -


I am using a toolkit: Listpicker for wp8 with data binding.

I have been compelled to code in this way:

  from the list & lt; Project & gt; List = new list & lt; Project & gt; (); ListPickerOptions.ItemSource = Lists;  

The textbox is connected to the data, but since the data is more than 5, when I select the data, I take me to a new screen where each element is named namespace Is shown as. Project

I'm new to databases.

The .xaml part below is for the listing picture

  & lt; Stackpanel orientation = "vertical" height = "167" margin = "0" & ​​gt; & Lt; Text block text = "domain" margin = "13,0,285,0" x: name = "domain" /> & Lt; The text box isEnabled = "False" text = "redmond" x: name = "domain_tyethbox" visibility = "short" /> & Lt; Toolkit: List Picture X: Name = "PictureDamman Option" itemsource = "{binding title, elementname = this}" horizontal alignment = "right" height = "123" margin = "0,0,11, -30" vertical alignment = " Top "width =" 442 "expansion node =" detail now "visibility =" abbreviated "& gt; & Lt; Toolkit: ListPicker.ItemTemplate & gt; & Lt; DataTemplate & gt; & Lt; StackPanel Orientation = "Horizontal" & gt; & Lt; Text block text = "{binding title}" tag = "{binding id}" /> & Lt; / StackPanel & gt; & Lt; / DataTemplate & gt; & Lt; / Toolkit: ListPicker.ItemTemplate & gt; & Lt; / Toolkit: ListPicker & gt; & Lt; / StackPanel & gt;  

What am I missing?

You just forgot to define the full mode template because you have not done this, Let's show the class structure. Here is the sample code for both templates, make sure that you have both.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -