edsnider / mastering-xamarin.forms-book Goto Github PK
View Code? Open in Web Editor NEWMastering Xamarin.Forms - Third Edition
Home Page: http://book.sndr.io/
License: MIT License
Mastering Xamarin.Forms - Third Edition
Home Page: http://book.sndr.io/
License: MIT License
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?
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
Wrong account brb
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.