Giter Site home page Giter Site logo

xamarin.forms.pagecontrol's Introduction

Xamarin.Forms.PageControl

use the iOS paging control with Xamarin.Forms

You can use any image in the paging control

This is the component, works on iOS and Android.

NuGet

Name Info
PageControl NuGet

Platform Support

MultiSelectListView is a .NET Standard 2.0 library.Its only dependency is the Xamarin.Forms

Setup / Usage

In the Xaml file we must declare our control xmlns:ci="clr-namespace:Xamarin.Forms.PageControl;assembly=Xamarin.Forms.PageControl" , for example .

Uses the properties to define the images that will be displayed. Enter the index to save which page is selected.

Properties

  • ShowIndicator : Displays the paging control.
  • IndicatorHeight x IndicatorWidth : Control the size of paging images.
  • SelectedIndicator x UnselectedIndicator : Image displayed on pagination.
  • Position : Index indicating the page.
  • ItemsSource : Collection of objects to feed control.

Example :

<?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:local="clr-namespace:PageControlSample"
             x:Class="PageControlSample.MainPage" 
              xmlns:ci="clr-namespace:Xamarin.Forms.PageControl;assembly=Xamarin.Forms.PageControl" 
           Padding="0,20,0,0">

    <StackLayout>
        <Label Text="PageControl sample" />

        <ci:PageControl ShowIndicator="{Binding ShowIcons}" IndicatorHeight="8" IndicatorWidth="8" UnselectedIndicator="unselected_circle.png" SelectedIndicator="selected_circle.png" Position="{Binding Position}" ItemsSource="{Binding Screenshots}" />

        <Image Source="{Binding Image}"></Image>
       
    </StackLayout>

</ContentPage>

The complete example can be downloaded here: https://github.com/TBertuzzi/Xamarin.Forms.PageControl/tree/master/XFPageControlSample

xamarin.forms.pagecontrol's People

Contributors

tbertuzzi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.