Code Monkey home page Code Monkey logo

xfpinview's Introduction

XFPINView (Xamarin.Forms UI Control)

XFPINView is Xamarin.Forms cross platform UI control to facilitate UI for mobile PIN (MPIN), OTP, Verification Code entry. This control can be used for Login using PIN, Creting New PIN, Change PIN, Entering secure OTP screens in your mobile application.

Nuget Package

https://www.nuget.org/packages/XFPINView/

Platforms Supported

  • iOS
  • Android
  • UWP

iOS : Screenshots

Android : Screenshots

Steps

  1. Search for XFPINView nuget package and install it in your Xamarin.Forms core project.
  2. In your Page, add reference to this package: xmlns:xfpinview="clr-namespace:XFPINView;assembly=XFPINView"
  3. Use the control like below:
<xfpinview:PINView
    BoxBackgroundColor="#FEDBD0"
    BoxShape="Circle"
    PINLength="5"
    PINValue="{Binding PIN}"
    Color="#442C2E" />

Properties Definitions

Property Type Default Description
AutoDismissKeyboard Boolean False Decides whether to dismiss the keyboard automatically when all charecters entered
BoxBackgroundColor Color Transparent Defines the BackgroundColor of each PIN Box
BoxBorderColor Color Color Property Value Defines the Border Color of each PIN Box
BoxFocusColor Color Black Defines the Focus Indicator Border Color when PIN Box is Focused
BoxFocusAnimation Enum None Animates the Box when it receives the Focus. Enum values [ None, ZoomInOut, ScaleUp ]
BoxShape Enum Circle Defines the shape of PIN Box from Enum values [ Squere, RoundCorner, Circle ]
BoxSize Double 50 Defines the Width and Height of each PIN Box
BoxSpacing Double 5 Defines the space among each PIN Box
Color Color Accent Defines the Color of PIN Box (Border and Dot)
IsPassword Boolean True Defines whether to show actual input character or hide / secure via Dot
PINInputType Enum Numeric Defines the Input Type from Enum [ Numeric, AlphaNumeric ]
PINLength Integer 4 Defines the Length (No. of Characters) of the PIN
PINValue String Empty Bind this to string Property in your ViewModel, to get value of the Entered PIN

Commands / Events Definitions

Command / Event Type Description
PINEntryCompletedCommand Command A Bindable Command, which gets invoked on completion of the PIN entry (All charecters are entered) You can execute your code through this command
PINEntryCompleted Event Invokes on completion of the PIN entry (when all charecters are entered).

Snippets / Screenshots

BoxShape

<xfpinview:PINView 
    BoxShape="Circle" 
    PINValue="{Binding PIN}" />

Color

<xfpinview:PINView 
    Color="Red" 
    PINValue="{Binding PIN}" />

BoxBackgroundColor

 <xfpinview:PINView
    BoxBackgroundColor="#DCEDC8"
    PINValue="{Binding PIN}"
    Color="#33691E" />

PINLength

Defines the Length of PIN your app supports

<xfpinview:PINView 
    PINLength="5" 
    PINValue="{Binding PIN}" />

PINValue

The Bindable PIN value user enters as an input

<xfpinview:PINView 
    PINLength="5" 
    PINValue="{Binding PIN}" />

BoxSize

<xfpinview:PINView
    BoxSize="50"
    PINLength="5" 
    PINValue="{Binding PIN}" />

BoxSpacing

<xfpinview:PINView
    BoxSpacing="10"
    PINLength="5" 
    PINValue="{Binding PIN}" />

Future Roadmap:

  • Provide option to show entry as Password or normal text input.
  • Show Focus indicator
  • Add invalid input / error animation

xfpinview's People

Contributors

mgohil avatar martinhey avatar

Stargazers

 avatar Brandon Ward avatar 李進興 Vulcan avatar Gabriel Odero avatar  avatar Viko Muhammad Saputra avatar Mohammad Hossein Rastegarinia avatar Douglas Giovanella avatar  avatar Sebastian Bickerle avatar Conor Breen avatar Roman Tkachev avatar Samir GC avatar Kenny Dizi avatar Elvin (Tharindu) Thudugala avatar  avatar Rafsanul Hasan avatar ConanYao avatar Phi Bui avatar Amaro Manungu avatar Altevir Cardoso Neto avatar

Watchers

Rafsanul Hasan avatar 李進興 Vulcan avatar Roman Tkachev avatar  avatar ARREBATRANS avatar Clayton Lopes avatar

xfpinview's Issues

Question DotSize can this be set?

Hi wonderful control.
Noticed that if you set the box size to 20 the dot size takes all the space and you cannot see the out circle.
Is there a way to define the size of the dotsize?

Many thanks

themes and XFPINView

the app looks awsome and wish to use it but not working if you have a folder themes. and that the app.xaml linking to the themes

TapGesture

[0:] Element: Xamarin.Forms.TapGestureRecognizer is already a child of XFPINView.BoxTemplate. Remove Xamarin.Forms.TapGestureRecognizer from XFPINView.BoxTemplate before adding to XFPINView.BoxTemplate.

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.