c# - ListView Object and Passing data to the next View in Xamarin Form -
I have gathered all the information for each of my customers and want to populate CustomerID information on my initial view, which list The scene is I. However, I think I am at the top of a level of the object and I do not know how to get the customer ID information on my listView.
Private IEnumerable & lt; IDictionary & lt; String, Object & gt; I also want to pass related item object information in the next view. & Gt; My Information; List & lt; Customers & gt; List = new list & lt; Customers & gt; (); Var listView = new ListView (); [String] customers ["company name"], (string) customers ["contact name"], (string) customers ["customer id"], (string) customers ["customer id"] [list] customers ["address"] [String] customers ["area"], (string) customers ["postal code"], (string) customers ["city"], (string) customers ["fax"], ])); } ListView.ItemsSource = list; SearchBar searchBar = New Searchbar {Placeholder = "Zamirine.Formas Property",}; Padding = new thickness (10, 20, 10, 10); Content = new stack layout () {hair = {searchBar, listView}}; ListView.ItemSelected + = (Sender, E) = & gt; {// My next scene is extension page};
Your item source is a collection of objects.
You will be given a Item Name followed by for each item in this collection.
Within this ItemTemplate you can see your own layout ranging from various Xamarin.Forms cell , ViewCell .
There is a tutorial with ListView at the end of the page using custom sections, which code-behind and XAML Will be very useful in approaches.
Also, looking at the selected value in listView.SelectedItem and how it takes a selected page by casting it to its model and pass it on the second page.
Comments
Post a Comment