Home Page Icon
Home Page
Table of Contents for
Table of Contents
Close
Table of Contents
by Ed Snider
Mastering Xamarin.Forms
Mastering Xamarin.Forms
Table of Contents
Mastering Xamarin.Forms
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
Sources
1. Getting Started
Introducing the app idea
Defining features
Creating the initial app
Setting up the solution
Updating the Xamarin.Forms packages
Creating the main page
Running the app
Creating the new entry page
Creating the entry detail page
Summary
2. MVVM and Data Binding
Understanding the MVVM pattern
Adding MVVM to the app
Setting up the app structure
Adding ViewModels
Adding MainViewModel
Adding DetailViewModel
Adding NewEntryViewModel
Summary
3. Navigation Service
The Xamarin.Forms navigation API
Navigation and MVVM
ViewModel-centric navigation
Creating a navigation service
Updating the TripLog app
Updating BaseViewModel
Updating MainViewModel
Initializing MainViewModel
Updating NewEntryViewModel
Updating DetailPage
Summary
4. Platform Specific Services and Dependency Injection
Inversion of control and dependency injection in mobile apps
The Xamarin.Forms DependencyService versus third-party alternatives
Creating and using platform-specific services
Creating a location service
Using the location service on the new entry page
Adding the location service implementation
Registering dependencies
Registering the platform-service implementations
Registering the ViewModels
Registering the navigation service
Updating the TripLog app
Updating the navigation service to handle ViewModel creation and dependency injection
Summary
5. User Interface
Custom Renderers
Creating a TableView DatePicker
Value Converters
Creating a reverse visibility Value Converter
Creating an integer to image Value Converter
Summary
6. API Data Access
Creating an API with Microsoft Azure App Services
Browsing and adding data
Creating a base HTTP service
Creating an API Data Service
Updating the TripLog app ViewModels
Offline data caching
Adding the Akavache library
Maintaining an offline data cache
Summary
7. Authentication
Adding identity and authentication to Azure Mobile Apps
Setting up permissions
Setting up an identity provider
Creating an authentication service
Adding a sign in page
Summary
8. Testing
Unit testing
Testing ViewModels
Running unit tests in Xamarin Studio
Automated UI testing
The Xamarin UITest framework
Common UITest methods
Creating a UITest project in Xamarin Studio
Initializing the TripLog app for UITest
Testing views
Running UI tests
Running UI tests locally
Enabling screenshots
Running UI tests in Xamarin Test Cloud
Summary
9. App Analytics
Mobile app analytics and crash reporting
Xamarin Insights
Setting up Xamarin Insights
Creating an analytics service
Tracking exceptions and events
Summary
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Cover
Next
Next Chapter
Mastering Xamarin.Forms
Table of Contents
Mastering Xamarin.Forms
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
Sources
1. Getting Started
Introducing the app idea
Defining features
Creating the initial app
Setting up the solution
Updating the Xamarin.Forms packages
Creating the main page
Running the app
Creating the new entry page
Creating the entry detail page
Summary
2. MVVM and Data Binding
Understanding the MVVM pattern
Adding MVVM to the app
Setting up the app structure
Adding ViewModels
Adding MainViewModel
Adding DetailViewModel
Adding NewEntryViewModel
Summary
3. Navigation Service
The Xamarin.Forms navigation API
Navigation and MVVM
ViewModel-centric navigation
Creating a navigation service
Updating the TripLog app
Updating BaseViewModel
Updating MainViewModel
Initializing MainViewModel
Updating NewEntryViewModel
Updating DetailPage
Summary
4. Platform Specific Services and Dependency Injection
Inversion of control and dependency injection in mobile apps
The Xamarin.Forms DependencyService versus third-party alternatives
Creating and using platform-specific services
Creating a location service
Using the location service on the new entry page
Adding the location service implementation
Registering dependencies
Registering the platform-service implementations
Registering the ViewModels
Registering the navigation service
Updating the TripLog app
Updating the navigation service to handle ViewModel creation and dependency injection
Summary
5. User Interface
Custom Renderers
Creating a TableView DatePicker
Value Converters
Creating a reverse visibility Value Converter
Creating an integer to image Value Converter
Summary
6. API Data Access
Creating an API with Microsoft Azure App Services
Browsing and adding data
Creating a base HTTP service
Creating an API Data Service
Updating the TripLog app ViewModels
Offline data caching
Adding the Akavache library
Maintaining an offline data cache
Summary
7. Authentication
Adding identity and authentication to Azure Mobile Apps
Setting up permissions
Setting up an identity provider
Creating an authentication service
Adding a sign in page
Summary
8. Testing
Unit testing
Testing ViewModels
Running unit tests in Xamarin Studio
Automated UI testing
The Xamarin UITest framework
Common UITest methods
Creating a UITest project in Xamarin Studio
Initializing the TripLog app for UITest
Testing views
Running UI tests
Running UI tests locally
Enabling screenshots
Running UI tests in Xamarin Test Cloud
Summary
9. App Analytics
Mobile app analytics and crash reporting
Xamarin Insights
Setting up Xamarin Insights
Creating an analytics service
Tracking exceptions and events
Summary
Index
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset