This is a migrated thread and some comments may be shown as answers.

RadTimePicker and Binding to Step

1 Answer 43 Views
TimePicker
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Thomas
Top achievements
Rank 1
Thomas asked on 19 Feb 2015, 04:46 PM
Greetings,

I have been attempting to set the Step property for TimePicker in Windows Universal (Windows 8 XAML) and have been unsuccessful in setting it ONLY during the Loaded event.

Setting it in XAML (convert to local) does not convert the string and throws an error.
Setting it in XAML to a binding does not pick up the value via a Binding.

Specifically, I have a Hub Control and using the first HubPanel to a search configuration and the results in the second panel. The DataTemplate of the HubPanel insulates the TimePicker controls from being accessed directly without using the Loaded event (cannot access by name), so that was the only option. However, setting the Step property seems to ONLY work from code-behind.

I am still investigating if TimePicker is having difficulty being bound to ObservableDictionary keys. I had to create a ViewModel implementing INotifyPropertyChanged and put THAT in a key called "SearchCriteria" for most of the properties to be properly assigned and updated.

Am I doing something wrong, or is this something that needs to be fixed to work as intended?

Thomas Mullen

1 Answer, 1 is accepted

Sort by
0
Thomas
Top achievements
Rank 1
answered on 19 Feb 2015, 05:40 PM
Nevermind. There was a left over binding that was set to Groups from the original template that I forgot to remove, so it was looking for it in the wrong key.

Thomas Mullen
Tags
TimePicker
Asked by
Thomas
Top achievements
Rank 1
Answers by
Thomas
Top achievements
Rank 1
Share this question
or