Sample code for the book Creating Mobile Apps with Xamarin.Forms.
1 | 2 | 3 |
---|---|---|
01 How does Xamarin.Forms fit in? | 11 The bindable infrastructure | 21 Transforms |
02 Anatomy of an app | 12 Styles | 22 Animation |
03 Deeper into text | 13 Bitmaps | 23 Triggers and behaviors |
04 Scrolling the stack | 14 Absolute layout | 24 Page navigation |
05 Dealing with sizes | 15 The interactive interface | 25 Page varieties |
06 Button clicks | 16 Data binding | 26 Custom layouts |
07 XAML vs. code | 17 Mastering the Grid | 27 Custom renderers |
08 Code and XAML in harmony | 18 MVVM | 28 Location and Maps |
09 Platform-specific API calls | 19 Collection views | 29 Libraries |
10 XAML markup extensions | 20 Async and file I/O |
- Install any version of Microsoft Visual Studio 2017
This is a fork of https://github.com/xamarin/xamarin-forms-book-samples as at April 17, 2018. The sample projects use package references (PackageReference in .csproj files). Every not SAP (Shared Asset Project) solution contains two Xamarin.Forms projects: Net Standard 2.0 and legacy Portable Class Library. You can refer to they in apps projects (IOS, Android, UWP) alternatively. The UWP projects are built with Windows 10 Fall Creators Update 10.0 Build Number 16299. The projects were build using Visual Studio Community 2017.
Typical organization of a solution. The solutions includes three application projects:
- iOS: iPhone and iPads
- Droid: Android phones and tablets
- UWP: The Universal Windows Platform, targeting Windows 10 tablets and desktop computers, and Windows 10 Mobile
and two Xamarin.Forms projects
- .Portable: Portable Class Library
- .NetStandard: NetStandard 2.0 Class Library
You can change references in the application projects to switch variant of Xamarin Forms