Difference between revisions of "Xamarin Forms"
From MgmtWiki
(→Logging) |
(→Navigation) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
==Full Title== | ==Full Title== | ||
− | The best practice use of [[Xamarin Forms]] to make a cross-platform [[Native App]] for [[Smart Phone]s. | + | The best practice use of [[Xamarin Forms]] to make a cross-platform [[Native App]] for [[Smart Phone]]s. |
==Solutions== | ==Solutions== | ||
===Navigation=== | ===Navigation=== | ||
− | * Typically Modal pages ares used to collect user data. The API pushmodalasync is not normally modal except for calls from a ListView on the main page. | + | * Typically Modal pages ares used to collect user data. The API pushmodalasync is not normally modal except for calls from a ListView or [https://github.com/xamarin/Xamarin.Forms/issues/3172 CollectionView] on the main page. |
− | * | + | * [https://forums.xamarin.com/discussion/35657/return-value-from-pushmodalasync This discussion] describes a way to use a ''TaskCompletionSource'' to block a pop until the task is really completed. |
===Logging=== | ===Logging=== |
Latest revision as of 15:43, 30 September 2020
Contents
Full Title
The best practice use of Xamarin Forms to make a cross-platform Native App for Smart Phones.
Solutions
- Typically Modal pages ares used to collect user data. The API pushmodalasync is not normally modal except for calls from a ListView or CollectionView on the main page.
- This discussion describes a way to use a TaskCompletionSource to block a pop until the task is really completed.
Logging
- Enhanced Device Logging in Visual Studio
- Logging with Xamarin PCL also includes some comments on best practice with Xamarin Forms. For example: "NLog works just fine with Android and iOS projects. For UWP you can use MetroLog which is very similar with NLog but on a smaller scale."
- Serilog.Sinks.Xamarin writes Serilog events to the console of Xamarin.iOS (NSLog) / Xamarin.Android (AndroidLog).
References
Other Reference Material
- See the wiki page Compliant Implementation of Native User Agent for an example of a Xamarin Forms Native App.
- Petzold Xamarin Book Chaper 24 on navigation