Skip to content

Instantly share code, notes, and snippets.

@Char0394
Last active June 6, 2017 02:56
Show Gist options
  • Save Char0394/120367ac3e6722a4429e5874344aedea to your computer and use it in GitHub Desktop.
Save Char0394/120367ac3e6722a4429e5874344aedea to your computer and use it in GitHub Desktop.
<AbsoluteLayout HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<local:VideoPlayerView HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"
AbsoluteLayout.LayoutBounds="0, 0, 1, 0.9" x:Name="videoPlayer"
AbsoluteLayout.LayoutFlags="All" />
<StackLayout HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand"
AbsoluteLayout.LayoutBounds="0, 0, 1, 0.9"
AbsoluteLayout.LayoutFlags="All"
x:Name="logoLayout">
<StackLayout Padding="30">
<Image Source="logo" />
</StackLayout>
</StackLayout>
<control:CarouselView ItemsSource="{Binding MyDataSource}" AbsoluteLayout.LayoutBounds="0, 0.7, 1, 0.1"
AbsoluteLayout.LayoutFlags="All" Position="{Binding Position, Mode=TwoWay}">
<control:CarouselView.ItemTemplate>
<DataTemplate>
<StackLayout HorizontalOptions="CenterAndExpand" VerticalOptions="EndAndExpand">
<Label Text="{Binding Title}" FontAttributes="Bold" HorizontalTextAlignment="Center" TextColor="White" HorizontalOptions="CenterAndExpand"/>
<Label Text="{Binding Detail}" HorizontalTextAlignment="Center" TextColor="White" HorizontalOptions="CenterAndExpand"/>
</StackLayout>
</DataTemplate>
</control:CarouselView.ItemTemplate>
</control:CarouselView>
<local:CarouselIndicators IndicatorHeight="12" IndicatorWidth="12" UnselectedIndicator="unselected_circle.png" SelectedIndicator="selected_circle.png" Position="{Binding Position}" ItemsSource="{Binding MyDataSource}"
AbsoluteLayout.LayoutBounds="0, 0.9, 1, 0.1"
AbsoluteLayout.LayoutFlags="All"/>
<Button BackgroundColor="Blue" TextColor="White" BorderRadius="0" Text="Login"
AbsoluteLayout.LayoutBounds="0, 1, 0.5, 0.1"
AbsoluteLayout.LayoutFlags="All" />
<Button BackgroundColor="Black" TextColor="White" BorderRadius="0" Text="Sign Up"
AbsoluteLayout.LayoutBounds="1, 1, 0.5, 0.1"
AbsoluteLayout.LayoutFlags="All" />
</AbsoluteLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment