Giter Site home page Giter Site logo

mastering-xamarin.forms-book's People

Contributors

edsnider avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

mastering-xamarin.forms-book's Issues

Tabbed page example

I really really enjoyed reading the book of Mastering Xamarin.Forms. Do you happen to have the best practice of tabbed page example? If so, do you have any plan to add tabbed page example in this repository?

Why won't chapter 3 (and beyond) run in Xamarin Live Player for Xamarin.Forms?

Hi Ed,

I recently purchased the second edition of your Xamarin Forms e-book from Barnes and Noble. I have been running and playing with the book code in Xamarin Live Player for Xamarin.Forms on my Samsung S9+ and Samsung tablet. Chapters 1 and 2 work as expected. However when I try to run the code from Chapter 3 and beyond, I get the error "Visualization Error: An item with the same key has already been added. Key: TripLog.ViewModels.DetailViewModel (ArgumentException)". Have you seen this error? I haven't been able to figure this one out yet and would like to be able to run the code.

Thanks.

Jonathan

Chapter 4

I tested the code presented in Chapter 4 on Android 10 and it does not work properly. When I press New button in toolbar, NewDetail page is opened but it stuck. The problem causes the following function:

public override async void Init()
{
try
{
var coords = await _locService.GetGeoCoordinatesAsync();
Latitude = coords.Latitude;
Longitude = coords.Longitude;
}
catch (Exception)
{
// TODO: handle exceptions from location service
}
}

The _locService.GetGeoCoordinatesAsync() method is executed properly but after that Latitude and
Longitude properties start updating infinitely which causing unresponsiveness. I do not understand why OnPropertyChanged() event is called infinitely. If I remove both properties then app works fine.

Update:

I spend some time on this problem and I think that I figure out what was the cause of the problem. By default, I use the Slovenian language and we write decimal numbers with a comma and not with a dot. if I change the language to English then everything works fine. To solve this problem, I think that I have to apply some kind of culture to appropriate binding. I will appreciate any kind of help.

Can't get project to build after completing Chapter 6 including the example files

I am stuck on Chapter 6. I can't get the project to build and I just tried downloading the example git and running it with no luck. I have been working through trying to see if it is a NuGet problem or reference problem related somehow, but so far have not made any progress. I just wanted to see if anyone was having similar issues.

It's errors that are very similar to this, however, I reference the right folder of my project. I have even tried deleting the reference and re-adding it.
error: The type or namespace name 'GeoCoords' could not be found (are you missing a using directive or an assembly reference?)

I also have around 100 errors that are something like:
error: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

I have tried adding references and packages cited for mscorlib, but this had caused more errors and I found people had similar issues and that was not the right direction.

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.