I made the first steps with speech recognition in the last few days with speech recognition, coming to the point where I had to select Items from a (Rad)ListPicker control (tried both, the Windows Phone Toolkit one as well as the Telerik one).
I was then realizing that calling the SelectedItem or the SelectedIndex does not work. By my app’s design the ListPicker has the IsExpanded property set to true, so there was one problem: in this state, it accepts only touch input.
Today I found a quick solution for this problem. If you rely on the input of the ListPicker control, just make sure that its IsExpanded state is false. You then will be able to set the SelectedItem or the SelectedIndex via code.
As always, I hope this will be helpful for some of you.
In one of my current projects, I needed to change the Background of the Popup on a Telerik RadListPicker control. While it took me some time, I want to share how to achieve that to make it easier for you.
First, you need to create a copy of the RadListPicker Template. You can use either Blend or Visual Studio 2012 to achieve this.
In Blend just go to the menu and choose Object -> Edit Style -> Edit a Copy. In Visual Studio, right click on your RadListPicker in the Designer Window and choose Edit Template -> Edit a Copy.
Now you will find a new Style within your Application.Resources in App.xaml.
To change the style you have to modify two parts, the PopupHeader and the Popup itself.
To change the Background of the PopupHeader search for telerikPrimitives:RadWindow x:Name=”Popup” . Under that, you will find a Grid.
In this Grid, you will need to set the Background to the desired Color or Brush you want to use: