diff --git a/GalaSoft.MvvmLight/GalaSoft.MvvmLight.Platform (iOS)/Helpers/BindingGenericApple.cs b/GalaSoft.MvvmLight/GalaSoft.MvvmLight.Platform (iOS)/Helpers/BindingGenericApple.cs index bc42e92..dad158c 100644 --- a/GalaSoft.MvvmLight/GalaSoft.MvvmLight.Platform (iOS)/Helpers/BindingGenericApple.cs +++ b/GalaSoft.MvvmLight/GalaSoft.MvvmLight.Platform (iOS)/Helpers/BindingGenericApple.cs @@ -137,6 +137,14 @@ namespace GalaSoft.MvvmLight.Helpers return binding; } + var textField = _propertySource.Target as UITextField; + if (textField != null) + { + var binding = ObserveSourceEvent("EditingChanged"); + binding._sourceHandlers["EditingChanged"].IsDefault = true; + return binding; + } + var checkbox = _propertySource.Target as UISwitch; if (checkbox != null) { @@ -163,6 +171,14 @@ namespace GalaSoft.MvvmLight.Helpers return binding; } + var textField = _propertyTarget.Target as UITextField; + if (textField != null) + { + var binding = ObserveTargetEvent("EditingChanged"); + binding._targetHandlers["EditingChanged"].IsDefault = true; + return binding; + } + var checkbox = _propertyTarget.Target as UISwitch; if (checkbox != null) { diff --git a/GalaSoft.MvvmLight/GalaSoft.MvvmLight.Platform (iOS)/Helpers/ExtensionsApple.cs b/GalaSoft.MvvmLight/GalaSoft.MvvmLight.Platform (iOS)/Helpers/ExtensionsApple.cs index 5f0b480..366fc9b 100644 --- a/GalaSoft.MvvmLight/GalaSoft.MvvmLight.Platform (iOS)/Helpers/ExtensionsApple.cs +++ b/GalaSoft.MvvmLight/GalaSoft.MvvmLight.Platform (iOS)/Helpers/ExtensionsApple.cs @@ -349,6 +349,11 @@ namespace GalaSoft.MvvmLight.Helpers { eventName = "Clicked"; } + else if (type == typeof (UISwitch) + || typeof (UISwitch).IsAssignableFrom(type)) + { + eventName = "ValueChanged"; + } return eventName; }