Skip to content

Instantly share code, notes, and snippets.

@kw0006667
Created October 30, 2012 08:57
Show Gist options
  • Save kw0006667/3979110 to your computer and use it in GitHub Desktop.
Save kw0006667/3979110 to your computer and use it in GitHub Desktop.
樣版資源(部分)
<!-- 適合格線的 250 像素方形項目範本,如 GroupedItemsPage 和 ItemsPage 中所見 -->
<DataTemplate x:Key="Standard250x250ItemTemplate">
<Grid HorizontalAlignment="Left" Width="250" Height="250">
<Border Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}">
<Image Source="{Binding Image}" Stretch="UniformToFill" AutomationProperties.Name="{Binding Title}"/>
</Border>
<StackPanel VerticalAlignment="Bottom" Background="{StaticResource ListViewItemOverlayBackgroundThemeBrush}">
<TextBlock Text="{Binding Title}" Foreground="{StaticResource ListViewItemOverlayForegroundThemeBrush}" Style="{StaticResource TitleTextStyle}" Height="60" Margin="15,0,15,0"/>
<TextBlock Text="{Binding Subtitle}" Foreground="{StaticResource ListViewItemOverlaySecondaryForegroundThemeBrush}" Style="{StaticResource CaptionTextStyle}" TextWrapping="NoWrap" Margin="15,0,15,10"/>
</StackPanel>
</Grid>
</DataTemplate>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment