I am using Portable xamarin cross platform. I have two project android and IOS.
I have to make form as transparent form. I have written code for same and this code p
Just include opacity property to your stacklayout :
<StackLayout VerticalOptions="End" HorizontalOptions="FillAndExpand" BackgroundColor="#80000000" Opacity="0.5" HeightRequest="160" Grid.Row="2" >
<Label Text="05:00" FontSize="60" FontAttributes="Bold" TextColor="White" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" ></Label>
</StackLayout>
Even simpler solution would be to just change the hex values of the alpha channel.
So just do this #FBC1BC > #50FBC1BC
And you will get a transparent background color with alpha defined by the first two values!
BackgroundColor = Color.Transparent
OR in xaml
`<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="XXX.Core.Views.Pages.XXXX.XXXX"
xmlns:local="clr-namespace:XXX.Core.Views.CustomControls"
BackgroundColor="Transparent">`