Telerik UI for Windows Phone by Progress

The RadPickerBox control consists of an Action Button and a Popup Window. You can define the content for both of them.

Content

In its normal state (when the popup window is not opened) the RadPickerBox control allows you to display content in it. In order to set its content use the Content property. It is of type object, so you can assign everything to it - simple strings, UIElements, UserControls etc.

For example, if you want the user to select a country via your picker, you can set the Content to be equal to "Select country".

CopyXAML
          <telerikPrimitives:RadPickerBox x:Name="radPickerBox" Content="Select
country"></telerikPrimitives:RadPickerBox>
Tip
You can also bind the Content of the RadPickerBox control to a data object and use the ContentTemplate property to define a DataTemplate to visualize the object.

Here is a snapshot of the result.

Picker Box-Features-Content Popup Content-01

Popup Content

When the RadPickerBox control's action button gets hit, a popup window appears, which can also hold some content. In order to set the content of the popup window you have to use the PopupContent property of the RadPickerBox control. It is of type object, so you can assign everything to it - simple strings, UIElements, UserControls, etc.

Note
You can directly wrap the content of the popup window inside the tag of the RadPickerBox control.

Here is an example of a RadPickerBox control showing in its popup window a ListBox containing some countries.

CopyXAML
          <telerikPrimitives:RadPickerBox x:Name="radPickerBox" Content="Select
country">
          <ListBox x:Name="countriesListBox" Background="Black" Padding="20">
          <ListBoxItem Content="United Kingdom" IsSelected="True" />
          <ListBoxItem Content="Germany" />
          <ListBoxItem Content="Russia" />
          <ListBoxItem Content="Japan" />
          <ListBoxItem Content="Bulgaria" />
          </ListBox>
          </telerikPrimitives:RadPickerBox>
Tip
You can also bind the PopupContent of the RadPickerBox control to a data object and use the ContentTemplate property to define a DataTemplate to visualize the object.

Here is a snapshot of the result.

Picker Box-Features-Content Popup Content-02