All Projects → lassana → XamarinFormsPinView

lassana / XamarinFormsPinView

Licence: BSD-2-Clause license
PIN keyboard for Xamarin.Forms.

Programming Languages

C#
18002 projects
F#
602 projects

Projects that are alternatives of or similar to XamarinFormsPinView

Xamarin.Forms.MultiSelectListView
☑️ Select multiple rows in a listview with xamarin.forms
Stars: ✭ 61 (-26.51%)
Mutual labels:  xamarin-forms, xamarin-plugin, xamarin-library
XamarinClipboardPlugin
Cross Platform Clipboard access for Xamarin
Stars: ✭ 24 (-71.08%)
Mutual labels:  xamarin-forms, xamarin-plugin, xamarin-library
Prototype.Forms.Controls
This sample app contains a random mixture of Xamarin/Xamarin.Forms controls, views, and functionality snippets that I've created.
Stars: ✭ 21 (-74.7%)
Mutual labels:  xamarin-forms, xamarin-plugin, xamarin-library
aspnetcore-authentication-apikey
Easy to use and very light weight Microsoft style API Key Authentication Implementation for ASP.NET Core. It can be setup so that it can accept API Key in Header, Authorization Header, QueryParams or HeaderOrQueryParams.
Stars: ✭ 215 (+159.04%)
Mutual labels:  netstandard, netstandard20
WebsocketClientLite.PCL
websocket Client Lite PCL - Xaramrin
Stars: ✭ 22 (-73.49%)
Mutual labels:  netstandard, netstandard20
Nlog
NLog - Advanced and Structured Logging for Various .NET Platforms
Stars: ✭ 5,296 (+6280.72%)
Mutual labels:  netstandard, netstandard20
Vortice.Vulkan
Cross platform .NET bindings for Vulkan, VMA, SPIRV-Cross and shaderc
Stars: ✭ 172 (+107.23%)
Mutual labels:  netstandard, netstandard20
LaunchMapsPlugin
Launch External Maps Plugin for Xamarin and Windows
Stars: ✭ 49 (-40.96%)
Mutual labels:  xamarin-forms, xamarin-plugin
EntryCustomReturnPlugin
Xamarin.Forms Plugin to customize the Xamarin.Forms.Entry Keyboard Return Button
Stars: ✭ 81 (-2.41%)
Mutual labels:  xamarin-forms, xamarin-plugin
CircleButtonMenu
No description or website provided.
Stars: ✭ 28 (-66.27%)
Mutual labels:  xamarin-forms, xamarin-plugin
VersionTrackingPlugin
Version Tracking Plugin for Xamarin and Windows
Stars: ✭ 62 (-25.3%)
Mutual labels:  xamarin-forms, xamarin-plugin
ButtonCirclePlugin
Circle Buttons with icon for your Xamarin.Forms Applications
Stars: ✭ 96 (+15.66%)
Mutual labels:  xamarin-forms, xamarin-plugin
Vortice.Mathematics
Cross platform .NET math library.
Stars: ✭ 46 (-44.58%)
Mutual labels:  netstandard, netstandard20
GiGraph
Simple yet versatile library for generating graphs in the DOT language
Stars: ✭ 25 (-69.88%)
Mutual labels:  netstandard, netstandard20
XamarinForms.VisualDebug
A library and client app to view the visual heirarchy of your Xamarin app pages as an interactive tree diagram at runtime
Stars: ✭ 22 (-73.49%)
Mutual labels:  xamarin-forms, xamarin-library
Math-Expression-Evaluator
A C# library for parsing mathemitical expressions with support for parentheses and variables.
Stars: ✭ 97 (+16.87%)
Mutual labels:  netstandard, netstandard20
DotNetGraph
Create GraphViz DOT graph with .NET / C#
Stars: ✭ 57 (-31.33%)
Mutual labels:  netstandard, netstandard20
KuttSharp
🔪 .NET Package for kutt.it url shortener
Stars: ✭ 29 (-65.06%)
Mutual labels:  netstandard, netstandard20
XamarinHosting
Xamarin Forms Generic Host implementation for Microsoft.Extensions.Hosting.
Stars: ✭ 19 (-77.11%)
Mutual labels:  xamarin-forms, xamarin-library
Xamarinmediamanager
Cross platform Xamarin plugin to play and control Audio and Video
Stars: ✭ 647 (+679.52%)
Mutual labels:  xamarin-forms, netstandard

PIN keyboard for Xamarin.Forms

 

Usage

  1. Add the following NuGet package: https://www.nuget.org/packages/FormsPinView/ NuGet

    OR

    add FormsPinView.Core, FormsPinView.iOS, and FormsPinView.Droid to your solution.

  2. Initialize iOS and Android renderers:

     // iOS:
     public override bool FinishedLaunching(UIApplication app, NSDictionary options)
     {
         ...
         global::Xamarin.Forms.Forms.Init();
         PinItemViewRenderer.Init();
     }
     
     // Android:
     protected override void OnCreate(Bundle bundle)
     {
         ...
         global::Xamarin.Forms.Forms.Init(this, bundle);
         PinItemViewRenderer.Init();
     }
    
  3. Add PinView to your page:

     ...
     xmlns:local="clr-namespace:FormsPinView.Core;assembly=FormsPinView.Core"
     ...
         <local:PinView
             HorizontalOptions="CenterAndExpand"
             VerticalOptions="CenterAndExpand"
             TargetPinLength="4"
             Validator="{Binding ValidatorFunc}"
             Success="Handle_Success" />
    
  4. PinView is MVVM-ready, so you can bind the following properties:

Property Type Description Default Required
Validator Func<IList<char>, bool> Function to check entered PIN null Yes
PinLength int The PIN length 4 No
SuccessCommand ICommand Invoked when the correct PIN is entered null No
ErrorCommand ICommand Invoked when an incorrect PIN is entered null No
ClearAfterSuccess bool Indicates whether the entered PIN should be cleaned or not after it was confirmed as correct true No
BorderColor Color View tint color. Gray No
Color Color View basic color. Black No
RippleColor Color View touch-effect color. Gray No

TODO

  • Use AbsoluteLayout instead of Grid, no XAML
  • Colorizing
  • Rowspacing & Colspacing
  • Buttons are Circle or Square
  • Font size
  • Button background
  • Buttom border (size)
  • Randomizing the numbers order
  • CI builds
  • UI tests

Changelog

2.1.0-pre1

  • Root container changed from Grid to AbsoluteLayout
  • Allowed to configure view colors: see BorderColor, Color, and RippleColor
  • Removed EmptyCircleImage and FilledCircleImage properties

2.0.0

  • Released 2.0.0-pre1 as a stable version

2.0.0-pre1

  • Removed Title property: now you have to implement it manually in your UI
  • Refactored the ViewModel API (splitted into bindable properties)
  • Namespaces changed from PCL to Core.
  • Allowed to change the PIN length dynamically as well as PIN symbols

1.1.1

  • Released 1.1.1-pre1 as a stable version

1.1.1-pre1

  • Fixed NSInternalInconsistencyException crash on iOS

1.1.0

  • .NET Standard 2.0 is now supported
  • PCL support is dropped

1.0.1

  • Changed PCL profile to 259
  • Added F# sample

1.0.0

  • Intilial release

License

BSD 2-Clause.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].