diff options
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Native/DateChangedEventArgs.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Tizen/Native/DateChangedEventArgs.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/DateChangedEventArgs.cs b/Xamarin.Forms.Platform.Tizen/Native/DateChangedEventArgs.cs new file mode 100644 index 00000000..c238e9e9 --- /dev/null +++ b/Xamarin.Forms.Platform.Tizen/Native/DateChangedEventArgs.cs @@ -0,0 +1,31 @@ +using System; + +namespace Xamarin.Forms.Platform.Tizen.Native +{ + /// <summary> + /// Event arguments for <see cref="DatePicker.DateChanged"/> event. + /// </summary> + public class DateChangedEventArgs : EventArgs + { + /// <summary> + /// The date that was on the element at the time that the user selected it. + /// </summary> + public DateTime OldDate { get; private set; } + + /// <summary> + /// The date that the user entered. + /// </summary> + public DateTime NewDate { get; private set; } + + /// <summary> + /// Creates a new <see cref="DateChangedEventArgs"/> object that represents a change from <paramref name="oldDate"/> to <paramref name="newDate"/>. + /// </summary> + /// <param name="oldDate">Old date of <see cref="DatePicker"/>.</param> + /// <param name="newDate">Current date of <see cref="DatePicker"/>.</param> + public DateChangedEventArgs(DateTime oldDate, DateTime newDate) + { + this.OldDate = oldDate; + this.NewDate = newDate; + } + } +} |