Mam problem ze zrozumieniem jednej definicji stylu w aplikacjach Metro 8 w systemie Windows.Gdzie znajduje się "ListViewItemPlaceholderBackgroundThemeBrush"?
Podczas tworzenia aplikacji w stylu Metro z VS, tam jest też folder o nazwie
Common
utworzony. Wewnątrz tego katalogu jest plik o nazwie
StandardStyles.xaml
Teraz Poniższy urywek jest od tego pliku:
<!-- Grid-appropriate 250 pixel square item template as seen in the GroupedItemsPage and ItemsPage -->
<DataTemplate x:Key="Standard250x250ItemTemplate">
<Grid HorizontalAlignment="Left" Width="250" Height="250">
<Border Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}">
<Image Source="{Binding Image}" Stretch="UniformToFill"/>
</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>
Co nie rozumiem Oto definicja zasobów statycznych, na przykład na granicy
Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}"
Nie chodzi o to, w jaki sposób pracować z szablonami i wiążące i zasobów.
Gdzie jest to ListViewItemPlaceholderBackgroundThemeBrush zlokalizowane?
Wielkie dzięki za pomoc.
Dimi