Difference between revisions of "Xamarin Forms"
From MgmtWiki
(→Navigation) |
|||
(7 intermediate revisions 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. | ||
==Solutions== | ==Solutions== | ||
+ | ===Navigation=== | ||
+ | * 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=== | ||
+ | |||
* [https://devblogs.microsoft.com/xamarin/enhanced-device-logging-in-visual-studio/ Enhanced Device Logging in Visual Studio] | * [https://devblogs.microsoft.com/xamarin/enhanced-device-logging-in-visual-studio/ Enhanced Device Logging in Visual Studio] | ||
+ | * [https://forums.xamarin.com/discussion/23832/logging-with-xamarin-pcl 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." | ||
+ | * [https://github.com/serilog/serilog-sinks-xamarin Serilog.Sinks.Xamarin] writes Serilog events to the console of Xamarin.iOS (NSLog) / Xamarin.Android (AndroidLog). | ||
==References== | ==References== | ||
+ | |||
+ | ===Other Reference Material=== | ||
+ | * See the wiki page [[Compliant Implementation of Native User Agent]] for an example of a [[Xamarin Forms]] [[Native App]]. | ||
+ | * [https://xamarin.azureedge.net/developer/xamarin-forms-book/XamarinFormsBook-Ch24-Apr2016.pdf Petzold Xamarin Book Chaper 24] on navigation | ||
[[Category:Best Practice]] | [[Category:Best Practice]] |
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