मुझे विंडोज 8 मेट्रो ऐप्स में एक स्टाइल परिभाषा को समझने में समस्या है।"ListViewItemPlaceholderBackgroundThemeBrush" कहां स्थित है?
जब आप वी.एस. के साथ एक मेट्रो शैली आवेदन बनाने के लिए, वहाँ भी
आम
बनाया नाम का एक फ़ोल्डर है। इस फ़ोल्डर के अंदर फाइल
StandardStyles.xaml
अब निम्नलिखित स्निपेट इस फ़ाइल से है कहा जाता है:
<!-- 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>
क्या मैं यहाँ समझ में नहीं आता स्थिर संसाधन परिभाषा है, जैसे सीमा
Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}"
के लिए यह कैसे के बारे में आप टेम्पलेट्स और बाध्यकारी और संसाधनों के साथ काम नहीं है।
यह कहां है ViewViewItemPlaceholderBackgroundThemeBrush स्थित है?
आपकी मदद के लिए बहुत धन्यवाद।
Dimi