Connect to the repository to retrieve the room data and bind it to the UI elements.
- [Instructor] Now that we've got a user interface,…let's go use our shared library to access that data.…I'll open the main page xmal.cs,…so the code behind for our main page here.…And after we initial the components,…I wanna go get my list of rooms.…Let's put a using statement up here for training rooms,…and now I can come down,…and get my repo.…Build my room repository,…and then I can get the rooms from there.…So, repo dot get rooms.…
And now I've got that data.…All I need to do is set the data context to the rooms,…'cause remember that we bound our list view…to the data context.…We just did the standard binding,…and we'll get this set of rooms then,…so that's what it'll use for the list,…and our detail is bound to the selected item.…So, it's gonna get the individual items that we used.…So, it looks like we're all set to test.…We've got our x 86 local machine target.…We'll go ahead and run this,…and see if our list and our detail appear…as we expect them to.…
We can see we've got our list on the left hand side here.…
- Cross-platform code reuse
- Visual Studio install guidelines
- Remote Windows development
- Creating a .NET Standard library
- Testing on an Emulator
- Navigating a segue
- Provisioning and testing on a device
- Using constraints for a layout
- Creating list views and detail views
Skill Level Beginner
1. Welcome to Xamarin
2. Xamarin on Mac
3. Xamarin on Windows
4. Building a Shared Library
5. Building an Android Application
6. Building an iOS Application
7. Building a UWP Application
Next steps1m 11s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.