TimeSpanPicker - selected part

Editors for WPF Forum

Posted 1 year ago by Ralph
Version: 17.2.0665
Avatar

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 1 year ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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 1 year ago by Ralph
Avatar

Brilliant, it works!
Thanks a lot!

The latest build of this product (v2019.1 build 0681) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.