Created
October 10, 2018 14:19
-
-
Save foxanna/9b6052084d962ca15851cf1c5b54456c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Xamarin.Forms; | |
using Xamarin.Forms.Platform.Android; | |
... | |
[assembly: ExportRenderer(typeof(ExtendedDatePicker), typeof(ExtendedDatePickerRenderer))] | |
... | |
public class ExtendedDatePickerRenderer : DatePickerRenderer | |
{ | |
public ExtendedDatePickerRenderer(Context context) : base(context) | |
{ | |
} | |
protected override void OnElementChanged(ElementChangedEventArgs<DatePicker> e) | |
{ | |
base.OnElementChanged(e); | |
Control.CustomSelectionActionModeCallback = new CustomSelectionActionModeCallback(); | |
Control.CustomInsertionActionModeCallback = new CustomInsertionActionModeCallback(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment