Alaa.Ali
Alaa.Ali

Reputation: 1202

Modifying FullScreen Design for ListPicker

I've Been working with WP7 for a while, am using listPicker/DatePicker Heavily. i hate its design though.i use liskPicker's property ExpansionMode="FullScreenOnly". i tried to make those controls to look prettier by

// Setting A source to the FullModeItemTemplate FullModeItemTemplate="{StaticResource lpkFullItemTemplate}"

//the definition for this Resource is as follows:

<DataTemplate x:Name="lpkFullItemTemplate">
<StackPanel Orientation="Horizontal" Margin="5 5 5 5" Background="#FFA3A3A3" 
  Width="475" Height="45" >
<TextBlock Text="{Binding}"  Foreground="Black" Margin="5 5 15 5"  />
</StackPanel>
</DataTemplate>

I need real changes, changing the background of that popup and such changes, is that possible? or i need to build my own popup from scratch?

Upvotes: 4

Views: 1593

Answers (2)

Sergi D&#237;az
Sergi D&#237;az

Reputation: 21

I would like to improve Pedro's answer, but I still can't comment. You can see there's some people making questions up there.

In order to copy the ListPickerPage you'll need both the ListPickerPage.xaml and ListPickerPage.xaml.cs files. If you want those files to compile, you need some extension methods defined on Extensions.cs, ItemsControlExtensions.cs and VisualTreeExtensions.cs. You can either copy those three files or cherry pick the methods you need and add them to your own file.

Upvotes: 2

Pedro Lamas
Pedro Lamas

Reputation: 7243

In order to do that you will have to create a copy of the ListPickerPage.xaml file from the Silverlight for Windows Phone Toolkit in your application, change it to meet your requirements, and then on your ListPicker control set the PickerPageUri proprety to the new ListPickerPage.xaml

Upvotes: 3

Related Questions