Telerik UI 对于 UWP TimePicker 步骤 属性

Telerik UI For UWP TimePicker Step property

我正在尝试在 RadTimePicker 上将分钟增量设置为 1 到 5。此处的 telerik 文档:

https://docs.telerik.com/devtools/universal-windows-platform/controls/raddatepicker-and-radtimepicker/properties-and-configuration/raddatetimepickers-properties-pickerproperties

Step (DateTimeOffset): Gets or sets the step that will be applied to the picker date/time lists. Each list will take the correspomding component fron the DateTimeOffset structure.

没有示例代码,我不知道这意味着什么或如何做,但我试过这个:

   InitializeComponent();
   var t = new DateTimeOffset();
   t.AddMinutes(5);
   timePickerz.Step = t;

在后面的代码中,但不好。

我测试了我这边的RadTimePicker控件,没有问题。例如,如果我将 Step 设置为 6 分钟,分钟选择器将以 6 分钟为步长。

RadTimePicker myTimePicker = new RadTimePicker();
myTimePicker.DisplayMode = DateTimePickerDisplayMode.Standard;
myTimePicker.Step = new DateTimeOffset().AddMinutes(6);