3

Is there any way to add backbround image to FullModeItemTemplate in ListPicker i want to implement this in my app

my xaml code is:

<toolkit:ListPicker x:Name="listPicker1" Grid.Row="0" ExpansionMode="ExpansionAllowed" HorizontalAlignment="Left" Margin="0,18,0,0" VerticalAlignment="Top" Width="300" FullModeHeader="Select City" Background="White" BorderBrush="White" Header="Select City">
            <toolkit:ListPicker.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{Binding Cities}" Width="250" />
                    </StackPanel>
                </DataTemplate>
            </toolkit:ListPicker.ItemTemplate>
            <toolkit:ListPicker.FullModeItemTemplate>
                <DataTemplate>
                        <TextBlock Text="{Binding Cities}" Width="300" Margin="0,0,0,20" FontSize="44"/>
                </DataTemplate>
            </toolkit:ListPicker.FullModeItemTemplate>
        </toolkit:ListPicker>

thanks in advance

4

1 回答 1

1

您可以在应用程序中从 Windows Phone 工具包创建 ListPickerPage.xaml 文件的副本,设置背景并将 tge PickerPageUri 属性设置为新页面。例如;

<toolkit:ListPicker 
   x:Name="ListPicker"
   ...
   PickerPageUri="/Controls/ListPickerPage.xaml"
/>
于 2013-06-07T11:57:41.357 回答