Git Product home page Git Product logo

xamarin-forms-book-preview's Introduction

xamarin-forms-book-preview

Sample code for the Preview Edition of "Creating Mobile Apps with Xamarin.Forms"

Notes

All projects have been upgraded to Xamarin.Forms 1.2.3.

###Introduction

In the last sentence under the Acknowledgements header (page 29) the word "with" should be "without." (Sorry, Deirdre.)

###Chapter 2

Under the Say hello header, in the paragraph that begins "In Visual Studio, you'll probably want to display..." (pg 29), the toolbar identified as Xamarin.Android should be just Android.

Under the Frame and BoxView header, the code sample following the paragraph "Try this" (straddling pgs. 71 and 72) is missing a right curly brace and a semicolon, and it might show up as a right square bracket in some ereaders.

In the BlackCatPage and BlackCatSapPage classes, in the initializatin of the ScrollView (pg. 76) the property IsClippedToBounds has been set to true. This fixes a scrolling problem encountered on Android devices in Xamarin.Forms 1.2.3.

###Chapter 3

Under the Automated data bindings header, in the bulleted list of BindingMode enumeration members (pg. 134), OneWayToSource should be described as "target updates source".

###Chapter 5

Under the Image and bitmaps header, in the code sample following the paragraph beginning "The BitmapFromResourcePage class loads the smaller (pg 218), the filename should be "ModernUserInterface256.JPG".

###Chapter 6

Under the Custom views: a radio button header, the code listing of the RadioButton class has an incorrect character in the printed copy for the settings of the checkOff and checkOn variables. The two variables should be initialized as "\u25CB" and "\u25C9".

The TapGestureRecognizer in the RadioButton class (pg. 254) and RadioExtensions class (pg. 256) has been changed from a callback to a Tapped handler because the callback is now deprecated.

xamarin-forms-book-preview's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xamarin-forms-book-preview's Issues

Book - Code issue on first BoxView example

On the first example of GreetingsPage with BoxView (location 1978 on my eReader) the GreetingsPage constructor is closed with a square bracket "]" rather than a brace "}" .

Some suggestions for chapter 4

Currently chapter 4 describes the issues arising from asynchronous I/O (such as the need for the FileHelper, etc), talks about bindings, and then goes back to I/O using tasks. Would it be possible to make the chapter more straightforward, by talking first (say) about file I/O, and then finishing off the chapter by talking about bindings? So you would not have to revisit the I/O again after already leaving the subject behind.

In fact, it might be worth splitting that chapter into two depending on how deep one wants to go into each of the two subtopics (I/O, properties).

It's an excellent text, and I have learned a lot so far. Thank you for writing it :)

Armando

(minor) book, pag. 29

Pag 29, par: "In Visual Studio, you’ll probably want to display the iOS and Android toolbars. These toolbars let you choose among emulators and devices, and allow managing the emulators. From the main menu, make sure the View > Toolbars > iOS and View > Toolbars > Xamarin.Android items are checked."

[...] View > Toolbars > Android [...]
rather than
[...] View > Toolbars > Xamarin.Android [...]

Device.OnPlatform needs a return type

Chapter 2 page 113 in iBook.
You simplify the code from the previous page bud did not include the type. It doesn't appear to be functional without the type included.

Your code reads:
[code]
this.Padding = new Thickness (0, Device.OnPlatform (20, 0, 0), 0, 0);
[/code]

Should read:
[code]
this.Padding = new Thickness (0, Device.OnPlatform (20, 0, 0), 0, 0);
[/code]

Changes to ToolbarItem, MainActivity and App Class

One of the recent updates to Xamarin.Forms caused changes to ToolbarItem (e.g., Activated is now deprecated), and to Android's MainActivity (now derived from FormsApplicationActivity). This last item requires changes to the App class, which itself now derives from Application.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.