TimeSpanPicker - selected part

Editors for WPF Forum

Posted 6 years ago by Ralph
Version: 17.2.0665

I have a TimeSpanPicker displaying Hours, Minutes and Seconds.
Is there any way to force the picker to select the Minutes part when it opens?  In my application the 99% case is to modify the Minutes part, but when the picker opens, the Seconds part is selected by default and the user has to click Minutes each time.

Comments (2)

Answer - Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Ralph,

You could probably alter this by cloning our default TimeSpanPicker Style  and making a new implicit Style for TimeSpanPicker in your app's Resources with the cloned Style.  Then set SelectedIndex="2" on the shared:HorizontalListBox in its Template.  That should get it to default to minutes.

Please write our support address if you don't already have the default styles and we can send them to you.

Actipro Software Support

Posted 6 years ago by Ralph

Brilliant, it works!
Thanks a lot!

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.