Coder Social home page Coder Social logo

mato.datepicker's Introduction

Mato.DatePicker

avatar

说明

  1. 这是一个带有农历日历的日期选择Xamarin控件
  2. 可以指定初始日期
  3. 多选和单选日期

引用

  1. PCL:https://www.nuget.org/packages/Mato.DatePicker.PCL/
  2. Android:https://www.nuget.org/packages/Mato.DatePicker.Android/
  3. iOS: https://www.nuget.org/packages/Mato.DatePicker.iOS/

用法

  1. 在引用iOS安装包时候需要在AppDelegate.cs做如下操作:
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
...
    global::Xamarin.Forms.Forms.Init();   
    Mato.DatePicker.iOS.ChinaDateServer ssChinaDateServer=new Mato.DatePicker.iOS.ChinaDateServer(); //在此插入这段语句
    LoadApplication(new App());
}

同样的,在引用Android安装包后,需要在MainActivity.cs做如下操作:

protected override void OnCreate(Bundle bundle)
{
...
    global::Xamarin.Forms.Forms.Init(this, bundle);
    DatePicker.Android.ChinaDateServer ssChinaDateServer = new DatePicker.Android.ChinaDateServer(); //在此插入这段语句
    LoadApplication(new App());
}

  1. 在这个页面中提供了如何使用这一控件https://github.com/MatoApps/Mato.DatePicker/blob/master/Mato.Sample/Mato.Sample/MainPage.xaml

mato.datepicker's People

Contributors

jevonsflash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.