зеркало из https://github.com/DeGsoft/maui-linux.git
[iOS] Adjust Started/Ended hooks in pickers for iOS 10 (#339)
This commit is contained in:
Родитель
36822e614d
Коммит
420ceb37d0
|
@ -48,8 +48,8 @@ namespace Xamarin.Forms.Platform.iOS
|
|||
{
|
||||
var entry = new NoCaretField { BorderStyle = UITextBorderStyle.RoundedRect };
|
||||
|
||||
entry.Started += OnStarted;
|
||||
entry.Ended += OnEnded;
|
||||
entry.EditingDidBegin += OnStarted;
|
||||
entry.EditingDidEnd += OnEnded;
|
||||
|
||||
_picker = new UIDatePicker { Mode = UIDatePickerMode.Date, TimeZone = new NSTimeZone("UTC") };
|
||||
|
||||
|
|
|
@ -37,8 +37,8 @@ namespace Xamarin.Forms.Platform.iOS
|
|||
{
|
||||
var entry = new NoCaretField { BorderStyle = UITextBorderStyle.RoundedRect };
|
||||
|
||||
entry.Started += OnStarted;
|
||||
entry.Ended += OnEnded;
|
||||
entry.EditingDidBegin += OnStarted;
|
||||
entry.EditingDidEnd += OnEnded;
|
||||
|
||||
_picker = new UIPickerView();
|
||||
|
||||
|
|
|
@ -32,8 +32,8 @@ namespace Xamarin.Forms.Platform.iOS
|
|||
{
|
||||
if (disposing)
|
||||
{
|
||||
Control.Started -= OnStarted;
|
||||
Control.Ended -= OnEnded;
|
||||
Control.EditingDidBegin -= OnStarted;
|
||||
Control.EditingDidEnd -= OnEnded;
|
||||
|
||||
_picker.ValueChanged -= OnValueChanged;
|
||||
}
|
||||
|
@ -49,8 +49,8 @@ namespace Xamarin.Forms.Platform.iOS
|
|||
{
|
||||
var entry = new NoCaretField { BorderStyle = UITextBorderStyle.RoundedRect };
|
||||
|
||||
entry.Started += OnStarted;
|
||||
entry.Ended += OnEnded;
|
||||
entry.EditingDidBegin += OnStarted;
|
||||
entry.EditingDidEnd += OnEnded;
|
||||
|
||||
_picker = new UIDatePicker { Mode = UIDatePickerMode.Time, TimeZone = new NSTimeZone("UTC") };
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче