Coder Social home page Coder Social logo

hamzeh-alchami / xfpagedcarouselview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vincentgury/xfpagedcarouselview

0.0 2.0 0.0 1.6 MB

Create paged carousel views from shared code for your mobile apps!

License: MIT License

Batchfile 0.04% C# 99.96%

xfpagedcarouselview's Introduction

Icon

Paged Carousel View for Xamarin.Forms (Android & iOS)

Create paged carousel views from shared code for your mobile apps!


Setup & Usage

  • Available on NuGet: https://www.nuget.org/packages/VG.XFPagedCarouselView/ NuGet
  • Install into your PCL project and Client projects.
  • Add a PagedCarouselView to your page, set its properties (don't forget to set a DataTemplate) and see the result.
  • Follow this quick guide for deeper understanding.

iOS Extra setup

Add Renderers.Init(); to the AppDelegate like so:

using XFPagedCarouselView.iOS;
[...]
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
    global::Xamarin.Forms.Forms.Init();

    Renderers.Init();

    LoadApplication(new App());

    return base.FinishedLaunching(app, options);
}

###Platform Support

Platform Supported Version
Xamarin.iOS Yes iOS 6+
Xamarin.Android Yes API 15+
Windows Phone Silverlight No
Windows Phone RT No
Windows Store RT No
Windows 10 UWP No
Xamarin.Mac No

Dependencies (Nuget)

  • Xamarin.Forms.CarouselView >= 2.3.0-pre2
  • VG.XFShapeView >= 1.0.4

PagedCarouselView properties

Under construction

Example

You can draw a box with a content Label, responding to touch like so:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:xfpcv="clr-namespace:XFPagedCarouselView;assembly=XFPagedCarouselView"
             x:Class="XFPagedCarouselViewSample.MainPage">
  <xfpcv:PagedCarouselView x:Name="PagedCarouselView" VerticalOptions="FillAndExpand" PagerStyle="Circle">
    <xfpcv:PagedCarouselView.ItemTemplate>
      <DataTemplate>
        <StackLayout BackgroundColor="{Binding BackgroundColor}">
          <Label Text="{Binding Title}" VerticalOptions="FillAndExpand" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" TextColor="White" FontSize="Large"></Label>
        </StackLayout>
      </DataTemplate>
    </xfpcv:PagedCarouselView.ItemTemplate>
  </xfpcv:PagedCarouselView>
</ContentPage>

Screenshots

Android

Android

  

Android

  

Android

iOS

iOS

  

iOS

  

iOS

Contributing

Contributions are absolutely welcome.

  1. Fork the project!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request and I will be happy to test it

Thank you for your suggestions!

Credits

A lot of thanks to Adam Pedley for inspiring me with his blog post: https://xamarinhelp.com/carousel-view-page-indicators

Copyright

© 2016 Vincent Gury

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.