It seems Blend is creating a Template
rather than a Style
.
For what it's worth here is an example JumpListStyle
which can be used ...
<phone:LongListSelector.JumpListStyle>
<Style TargetType="phone:LongListSelector">
<Setter Property="GridCellSize" Value="113,113"/>
<Setter Property="LayoutMode" Value="Grid" />
<Setter Property="ItemTemplate">
<Setter.Value>
<DataTemplate>
<Border Background="{Binding Converter={StaticResource BackgroundConverter}}"
Width="113"
Height="113"
Margin="6" >
<TextBlock
Text="{Binding Key}"
FontSize="42"
Padding="6"
Foreground="{Binding Converter={StaticResource ForegroundConverter}}"
VerticalAlignment="Center"/>
</Border>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</phone:LongListSelector.JumpListStyle>
You also need references to the ForegroundConverter
and BackgroundConverter
. I put this in App.xaml so that the style is consistent throughout the app.
<phone:JumpListItemBackgroundConverter x:Key="BackgroundConverter"
Disabled="{StaticResource MyThemeFGColor}" Enabled="{StaticResource MyThemeAccentColor}" />
<phone:JumpListItemForegroundConverter x:Key="ForegroundConverter"
Disabled="{StaticResource MyThemeFGColor}" Enabled="{StaticResource MyThemeBGColor}" />