diff --git a/src/Controls/src/Core/PublicAPI/net-android/PublicAPI.Unshipped.txt b/src/Controls/src/Core/PublicAPI/net-android/PublicAPI.Unshipped.txt index dd12942a990f..9801c34658b3 100644 --- a/src/Controls/src/Core/PublicAPI/net-android/PublicAPI.Unshipped.txt +++ b/src/Controls/src/Core/PublicAPI/net-android/PublicAPI.Unshipped.txt @@ -39,6 +39,9 @@ Microsoft.Maui.Controls.ITextElement.OnCharacterSpacingPropertyChanged(double ol Microsoft.Maui.Controls.ITextElement.OnTextTransformChanged(Microsoft.Maui.TextTransform oldValue, Microsoft.Maui.TextTransform newValue) -> void Microsoft.Maui.Controls.ITextElement.TextTransform.get -> Microsoft.Maui.TextTransform Microsoft.Maui.Controls.ITextElement.TextTransform.set -> void +Microsoft.Maui.Controls.TimeChangedEventArgs.NewTime.get -> System.TimeSpan? +Microsoft.Maui.Controls.TimeChangedEventArgs.OldTime.get -> System.TimeSpan? +Microsoft.Maui.Controls.TimeChangedEventArgs.TimeChangedEventArgs(System.TimeSpan? oldTime, System.TimeSpan? newTime) -> void ~Microsoft.Maui.Controls.ITextElement.OnTextColorPropertyChanged(Microsoft.Maui.Graphics.Color oldValue, Microsoft.Maui.Graphics.Color newValue) -> void ~Microsoft.Maui.Controls.ITextElement.TextColor.get -> Microsoft.Maui.Graphics.Color ~Microsoft.Maui.Controls.ITextElement.UpdateFormsText(string original, Microsoft.Maui.TextTransform transform) -> string @@ -155,9 +158,6 @@ Microsoft.Maui.Controls.StyleableElement.StyleableElement() -> void Microsoft.Maui.Controls.StyleableElement.StyleClass.get -> System.Collections.Generic.IList! Microsoft.Maui.Controls.StyleableElement.StyleClass.set -> void Microsoft.Maui.Controls.TimeChangedEventArgs -Microsoft.Maui.Controls.TimeChangedEventArgs.NewTime.get -> System.TimeSpan -Microsoft.Maui.Controls.TimeChangedEventArgs.OldTime.get -> System.TimeSpan -Microsoft.Maui.Controls.TimeChangedEventArgs.TimeChangedEventArgs(System.TimeSpan oldTime, System.TimeSpan newTime) -> void Microsoft.Maui.Controls.TimePicker.TimeSelected -> System.EventHandler Microsoft.Maui.Controls.TitleBar Microsoft.Maui.Controls.TitleBar.Content.get -> Microsoft.Maui.IView? diff --git a/src/Controls/src/Core/PublicAPI/net-ios/PublicAPI.Unshipped.txt b/src/Controls/src/Core/PublicAPI/net-ios/PublicAPI.Unshipped.txt index 55385f69182f..50284f50df52 100644 --- a/src/Controls/src/Core/PublicAPI/net-ios/PublicAPI.Unshipped.txt +++ b/src/Controls/src/Core/PublicAPI/net-ios/PublicAPI.Unshipped.txt @@ -15,6 +15,9 @@ Microsoft.Maui.Controls.DateChangedEventArgs.OldDate.get -> System.DateTime? Microsoft.Maui.Controls.DatePicker.Date.get -> System.DateTime? Microsoft.Maui.Controls.StyleableElement.Style.get -> Microsoft.Maui.Controls.Style? Microsoft.Maui.Controls.Internals.TextTransformUtilities +Microsoft.Maui.Controls.TimeChangedEventArgs.NewTime.get -> System.TimeSpan? +Microsoft.Maui.Controls.TimeChangedEventArgs.OldTime.get -> System.TimeSpan? +Microsoft.Maui.Controls.TimeChangedEventArgs.TimeChangedEventArgs(System.TimeSpan? oldTime, System.TimeSpan? newTime) -> void override Microsoft.Maui.Controls.ShadowTypeConverter.CanConvertFrom(System.ComponentModel.ITypeDescriptorContext? context, System.Type? sourceType) -> bool override Microsoft.Maui.Controls.ShadowTypeConverter.CanConvertTo(System.ComponentModel.ITypeDescriptorContext? context, System.Type? destinationType) -> bool override Microsoft.Maui.Controls.ShadowTypeConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext? context, System.Globalization.CultureInfo? culture, object! value) -> object! @@ -317,9 +320,6 @@ Microsoft.Maui.Controls.StyleableElement.StyleableElement() -> void Microsoft.Maui.Controls.StyleableElement.StyleClass.get -> System.Collections.Generic.IList! Microsoft.Maui.Controls.StyleableElement.StyleClass.set -> void Microsoft.Maui.Controls.TimeChangedEventArgs -Microsoft.Maui.Controls.TimeChangedEventArgs.NewTime.get -> System.TimeSpan -Microsoft.Maui.Controls.TimeChangedEventArgs.OldTime.get -> System.TimeSpan -Microsoft.Maui.Controls.TimeChangedEventArgs.TimeChangedEventArgs(System.TimeSpan oldTime, System.TimeSpan newTime) -> void Microsoft.Maui.Controls.TimePicker.TimeSelected -> System.EventHandler Microsoft.Maui.Controls.TitleBar Microsoft.Maui.Controls.TitleBar.Content.get -> Microsoft.Maui.IView? diff --git a/src/Controls/src/Core/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt b/src/Controls/src/Core/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt index 051307bb2827..5b65a0afd7b6 100644 --- a/src/Controls/src/Core/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt +++ b/src/Controls/src/Core/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt @@ -15,6 +15,9 @@ Microsoft.Maui.Controls.DateChangedEventArgs.OldDate.get -> System.DateTime? Microsoft.Maui.Controls.DatePicker.Date.get -> System.DateTime? Microsoft.Maui.Controls.StyleableElement.Style.get -> Microsoft.Maui.Controls.Style? Microsoft.Maui.Controls.Internals.TextTransformUtilities +Microsoft.Maui.Controls.TimeChangedEventArgs.NewTime.get -> System.TimeSpan? +Microsoft.Maui.Controls.TimeChangedEventArgs.OldTime.get -> System.TimeSpan? +Microsoft.Maui.Controls.TimeChangedEventArgs.TimeChangedEventArgs(System.TimeSpan? oldTime, System.TimeSpan? newTime) -> void override Microsoft.Maui.Controls.ShadowTypeConverter.CanConvertFrom(System.ComponentModel.ITypeDescriptorContext? context, System.Type? sourceType) -> bool override Microsoft.Maui.Controls.ShadowTypeConverter.CanConvertTo(System.ComponentModel.ITypeDescriptorContext? context, System.Type? destinationType) -> bool override Microsoft.Maui.Controls.ShadowTypeConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext? context, System.Globalization.CultureInfo? culture, object! value) -> object! @@ -318,9 +321,6 @@ Microsoft.Maui.Controls.StyleableElement.StyleableElement() -> void Microsoft.Maui.Controls.StyleableElement.StyleClass.get -> System.Collections.Generic.IList! Microsoft.Maui.Controls.StyleableElement.StyleClass.set -> void Microsoft.Maui.Controls.TimeChangedEventArgs -Microsoft.Maui.Controls.TimeChangedEventArgs.NewTime.get -> System.TimeSpan -Microsoft.Maui.Controls.TimeChangedEventArgs.OldTime.get -> System.TimeSpan -Microsoft.Maui.Controls.TimeChangedEventArgs.TimeChangedEventArgs(System.TimeSpan oldTime, System.TimeSpan newTime) -> void Microsoft.Maui.Controls.TimePicker.TimeSelected -> System.EventHandler Microsoft.Maui.Controls.TitleBar Microsoft.Maui.Controls.TitleBar.Content.get -> Microsoft.Maui.IView? diff --git a/src/Controls/src/Core/PublicAPI/net-windows/PublicAPI.Unshipped.txt b/src/Controls/src/Core/PublicAPI/net-windows/PublicAPI.Unshipped.txt index b0f06cdbc222..2bdc0f0207fe 100644 --- a/src/Controls/src/Core/PublicAPI/net-windows/PublicAPI.Unshipped.txt +++ b/src/Controls/src/Core/PublicAPI/net-windows/PublicAPI.Unshipped.txt @@ -39,6 +39,9 @@ Microsoft.Maui.Controls.ITextElement.OnCharacterSpacingPropertyChanged(double ol Microsoft.Maui.Controls.ITextElement.OnTextTransformChanged(Microsoft.Maui.TextTransform oldValue, Microsoft.Maui.TextTransform newValue) -> void Microsoft.Maui.Controls.ITextElement.TextTransform.get -> Microsoft.Maui.TextTransform Microsoft.Maui.Controls.ITextElement.TextTransform.set -> void +Microsoft.Maui.Controls.TimeChangedEventArgs.NewTime.get -> System.TimeSpan? +Microsoft.Maui.Controls.TimeChangedEventArgs.OldTime.get -> System.TimeSpan? +Microsoft.Maui.Controls.TimeChangedEventArgs.TimeChangedEventArgs(System.TimeSpan? oldTime, System.TimeSpan? newTime) -> void ~Microsoft.Maui.Controls.ITextElement.OnTextColorPropertyChanged(Microsoft.Maui.Graphics.Color oldValue, Microsoft.Maui.Graphics.Color newValue) -> void ~Microsoft.Maui.Controls.ITextElement.TextColor.get -> Microsoft.Maui.Graphics.Color ~Microsoft.Maui.Controls.ITextElement.UpdateFormsText(string original, Microsoft.Maui.TextTransform transform) -> string @@ -154,9 +157,6 @@ Microsoft.Maui.Controls.StyleableElement.StyleableElement() -> void Microsoft.Maui.Controls.StyleableElement.StyleClass.get -> System.Collections.Generic.IList! Microsoft.Maui.Controls.StyleableElement.StyleClass.set -> void Microsoft.Maui.Controls.TimeChangedEventArgs -Microsoft.Maui.Controls.TimeChangedEventArgs.NewTime.get -> System.TimeSpan -Microsoft.Maui.Controls.TimeChangedEventArgs.OldTime.get -> System.TimeSpan -Microsoft.Maui.Controls.TimeChangedEventArgs.TimeChangedEventArgs(System.TimeSpan oldTime, System.TimeSpan newTime) -> void Microsoft.Maui.Controls.TimePicker.TimeSelected -> System.EventHandler Microsoft.Maui.Controls.TitleBar Microsoft.Maui.Controls.TitleBar.Content.get -> Microsoft.Maui.IView? diff --git a/src/Controls/src/Core/PublicAPI/net/PublicAPI.Unshipped.txt b/src/Controls/src/Core/PublicAPI/net/PublicAPI.Unshipped.txt index 961edef3dcc7..ac2973533042 100644 --- a/src/Controls/src/Core/PublicAPI/net/PublicAPI.Unshipped.txt +++ b/src/Controls/src/Core/PublicAPI/net/PublicAPI.Unshipped.txt @@ -34,6 +34,9 @@ Microsoft.Maui.Controls.ITextAlignmentElement.HorizontalTextAlignment.get -> Mic Microsoft.Maui.Controls.ITextAlignmentElement.OnHorizontalTextAlignmentPropertyChanged(Microsoft.Maui.TextAlignment oldValue, Microsoft.Maui.TextAlignment newValue) -> void Microsoft.Maui.Controls.ITextAlignmentElement.VerticalTextAlignment.get -> Microsoft.Maui.TextAlignment Microsoft.Maui.Controls.ITextElement +Microsoft.Maui.Controls.TimeChangedEventArgs.NewTime.get -> System.TimeSpan? +Microsoft.Maui.Controls.TimeChangedEventArgs.OldTime.get -> System.TimeSpan? +Microsoft.Maui.Controls.TimeChangedEventArgs.TimeChangedEventArgs(System.TimeSpan? oldTime, System.TimeSpan? newTime) -> void ~Microsoft.Maui.Controls.ITextElement.OnTextColorPropertyChanged(Microsoft.Maui.Graphics.Color oldValue, Microsoft.Maui.Graphics.Color newValue) -> void ~Microsoft.Maui.Controls.ITextElement.TextColor.get -> Microsoft.Maui.Graphics.Color ~Microsoft.Maui.Controls.ITextElement.UpdateFormsText(string original, Microsoft.Maui.TextTransform transform) -> string @@ -149,9 +152,6 @@ Microsoft.Maui.Controls.StyleableElement.StyleableElement() -> void Microsoft.Maui.Controls.StyleableElement.StyleClass.get -> System.Collections.Generic.IList! Microsoft.Maui.Controls.StyleableElement.StyleClass.set -> void Microsoft.Maui.Controls.TimeChangedEventArgs -Microsoft.Maui.Controls.TimeChangedEventArgs.NewTime.get -> System.TimeSpan -Microsoft.Maui.Controls.TimeChangedEventArgs.OldTime.get -> System.TimeSpan -Microsoft.Maui.Controls.TimeChangedEventArgs.TimeChangedEventArgs(System.TimeSpan oldTime, System.TimeSpan newTime) -> void Microsoft.Maui.Controls.TimePicker.TimeSelected -> System.EventHandler Microsoft.Maui.Controls.TitleBar Microsoft.Maui.Controls.TitleBar.Content.get -> Microsoft.Maui.IView? diff --git a/src/Controls/src/Core/PublicAPI/netstandard/PublicAPI.Unshipped.txt b/src/Controls/src/Core/PublicAPI/netstandard/PublicAPI.Unshipped.txt index 410f18fd3ace..563b30b2d6ad 100644 --- a/src/Controls/src/Core/PublicAPI/netstandard/PublicAPI.Unshipped.txt +++ b/src/Controls/src/Core/PublicAPI/netstandard/PublicAPI.Unshipped.txt @@ -42,6 +42,9 @@ Microsoft.Maui.Controls.ITextElement.TextTransform.set -> void Microsoft.Maui.Controls.ShadowTypeConverter Microsoft.Maui.Controls.ShadowTypeConverter.ShadowTypeConverter() -> void Microsoft.Maui.Controls.StyleableElement.Style.get -> Microsoft.Maui.Controls.Style? +Microsoft.Maui.Controls.TimeChangedEventArgs.NewTime.get -> System.TimeSpan? +Microsoft.Maui.Controls.TimeChangedEventArgs.OldTime.get -> System.TimeSpan? +Microsoft.Maui.Controls.TimeChangedEventArgs.TimeChangedEventArgs(System.TimeSpan? oldTime, System.TimeSpan? newTime) -> void override Microsoft.Maui.Controls.ShadowTypeConverter.CanConvertFrom(System.ComponentModel.ITypeDescriptorContext? context, System.Type? sourceType) -> bool override Microsoft.Maui.Controls.ShadowTypeConverter.CanConvertTo(System.ComponentModel.ITypeDescriptorContext? context, System.Type? destinationType) -> bool override Microsoft.Maui.Controls.ShadowTypeConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext? context, System.Globalization.CultureInfo? culture, object! value) -> object! @@ -149,9 +152,6 @@ Microsoft.Maui.Controls.StyleableElement.StyleableElement() -> void Microsoft.Maui.Controls.StyleableElement.StyleClass.get -> System.Collections.Generic.IList! Microsoft.Maui.Controls.StyleableElement.StyleClass.set -> void Microsoft.Maui.Controls.TimeChangedEventArgs -Microsoft.Maui.Controls.TimeChangedEventArgs.NewTime.get -> System.TimeSpan -Microsoft.Maui.Controls.TimeChangedEventArgs.OldTime.get -> System.TimeSpan -Microsoft.Maui.Controls.TimeChangedEventArgs.TimeChangedEventArgs(System.TimeSpan oldTime, System.TimeSpan newTime) -> void Microsoft.Maui.Controls.TimePicker.TimeSelected -> System.EventHandler Microsoft.Maui.Controls.TitleBar Microsoft.Maui.Controls.TitleBar.Content.get -> Microsoft.Maui.IView? diff --git a/src/Controls/src/Core/TimeChangedEventArgs.cs b/src/Controls/src/Core/TimeChangedEventArgs.cs index 75a5580a3a9a..c1a7edd1f1f0 100644 --- a/src/Controls/src/Core/TimeChangedEventArgs.cs +++ b/src/Controls/src/Core/TimeChangedEventArgs.cs @@ -11,7 +11,7 @@ public class TimeChangedEventArgs : EventArgs /// /// /// To be added. - public TimeChangedEventArgs(TimeSpan oldTime, TimeSpan newTime) + public TimeChangedEventArgs(TimeSpan? oldTime, TimeSpan? newTime) { OldTime = oldTime; NewTime = newTime; @@ -20,11 +20,11 @@ public TimeChangedEventArgs(TimeSpan oldTime, TimeSpan newTime) /// The time that the user entered. /// To be added. /// To be added. - public TimeSpan NewTime { get; private set; } + public TimeSpan? NewTime { get; private set; } /// The time that was on the element at the time that the user selected it. /// To be added. /// To be added. - public TimeSpan OldTime { get; private set; } + public TimeSpan? OldTime { get; private set; } } } \ No newline at end of file diff --git a/src/Controls/tests/Core.UnitTests/TimePickerUnitTest.cs b/src/Controls/tests/Core.UnitTests/TimePickerUnitTest.cs index df2d0d331e8a..ab9aab7ba54b 100644 --- a/src/Controls/tests/Core.UnitTests/TimePickerUnitTest.cs +++ b/src/Controls/tests/Core.UnitTests/TimePickerUnitTest.cs @@ -88,8 +88,8 @@ public void DatePickerSelectedEventArgs(TimeSpan initialTime, TimeSpan finalTime timePicker.Time = initialTime; TimePicker pickerFromSender = null; - TimeSpan oldTime = new TimeSpan(); - TimeSpan newTime = new TimeSpan(); + TimeSpan? oldTime = new TimeSpan(); + TimeSpan? newTime = new TimeSpan(); timePicker.TimeSelected += (s, e) => {