New to Telerik UI for WinUI? Download free 30-day trial

Extensions

The DateTimeMaskedInputExtensions and TimeSpanMaskedInputExtensions classes allow you to further customize the RadMaskedInput control's controlled input when using the DateTime and TimeSpan MaskType.

The two classes can be accessed in XAML through the following namespace:
xmlns:input="using:Telerik.UI.Xaml.Controls.Input"

Example 1: Using the attached properties

<input:RadMaskedInput input:DateTimeMaskedInputExtensions.AutoSelectNextPart="True" input:DateTimeMaskedInputExtensions.MillisecondsStep="10" MaskType="DateTime" /> 
 
<input:RadMaskedInput input:TimeSpanMaskedInputExtensions.MinTimeSpan="00:00:30" input:TimeSpanMaskedInputExtensions.MaxTimeSpan="00:20:00" MaskType="TimeSpan" /> 

DateTimeMaskedInputExtensions

The DateTimeMaskedInputExtensions class provides the following attached properties for additional customizations/limitations over the user input when in MaskType.DateTime scenarios:

  • MinDateTime: Determines the minimum DateTime a user can set with the control.
  • MaxDateTime: Determines the maximum DateTime a user can set with the control.
  • DefaultDateTime: Determines the DateTime which will be set when the value is cleared.
  • AutoSelectNextPart: Indicates whether the next part is selected when the current one is filled.
  • EnableKeyNavigation: Indicates whether the sections can be navigated with the arrow keys.
  • AutoCompleteYear: Indicates whether the year part is auto-completed.
  • YearResetValue: Indicates the reset value of the year section (value when you delete the section).
  • MillisecondsStep: Determines the spin step in milliseconds section.
  • SecondsStep: Determines the spin step in seconds section.
  • MinutesStep: Determines the spin step in minutes section.
  • HoursStep: Determines the spin step in hours section.

TimeSpanMaskedInputExtensions

The TimeSpanMaskedInputExtensions class provides the following attached properties for additional customizations/limitations over the user input when in MaskType.TimeSpan scenarios:

  • MinTimeSpan: Allows you to define the minimum value that can be entered.
  • MaxTimeSpan: Allows you to define the maximum value that can be entered.
  • AutoSelectNextPart: Indicates whether the next part is selected when the current one is filled.
  • EnableKeyNavigation: Indicates whether the sections can be navigated with the arrow keys.
  • MillisecondsStep: Determines the spin step in milliseconds section.
  • SecondsStep: Determines the spin step in seconds section.
  • MinutesStep: Determines the spin step in minutes section.
  • HoursStep: Determines the spin step in hours section.
  • DaysStep: Determines the spin step in days section.

See Also

In this article
Not finding the help you need?