On my Splash screen, I want to put the App version for both Android and iOS at the bottom
Here is my screenshot.
You can use following code. Put the Label to the StackLayout, set the VerticalOptions to end in StackLayout. set the HorizontalOptions to Center for Label.
<?xml version="1.0" encoding="utf-8" ?>
<StackLayout BackgroundColor="SkyBlue" VerticalOptions="End" >
<Label Text="V 1.0.1"
Here is my demo.
@LeonLu - I suspect the OP wants the version number to appear in a native splash screen rather than the first XF page.
@AMAX - I've seen this answered once (and I do mean, just once) before in the forum (it might have been more generic - how to dynamically create a splash screen rather than explicitly mentioning a version number). I have to dash out now, so don't have time to search right now. See if you can find that previous answer in the forum. If not, I'll have a search when I have time.
I think @AMAX is looking for a way to programmatically detect and report the version number. Here's a tutorial I found on how to get the build / version number dynamically.
You could simply use this tutorial to gather the build number, and then link it in your XAML code.
Here's a second tutorial I found.https://www.c-sharpcorner.com/article/how-to-get-app-version-and-build-number-in-xamarin-forms/
Hope that helps!
@AMAX - If you haven't resolved this already, can you clarify what you are trying to achieve and which bit(s) you need help with.
Continued at https://forums.xamarin.com/discussion/177815/adding-version-number-on-xamarin-ios-splash-screen
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies